xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McCormack <...@csse.monash.edu.au>
Subject Zero-area rect doesn't get rendered after its size is changed
Date Mon, 16 Jun 2003 08:36:59 GMT

I had a look through the bugzilla to see if this was already reported,
but I couldn't see it.

This example doesn't display the rect after the script gets run:

  <svg xmlns="http://www.w3.org/2000/svg" width="200" height="200" viewBox="0 0 200 200">
    <rect id="r" x="50" y="50" width="0" height="0" stroke="black" stroke-width="3" fill="yellow"/>
    <script language="text/ecmascript">
      var r = document.getElementById("r");
      r.setAttribute("width", 100);
      r.setAttribute("height", 100);

I know the spec says that rendering of the rect should be disabled if
either the width or height is 0, but surely this doesn't mean even if
it's changed to a non-zero later?



Cameron McCormack
  // clm@csse.monash.edu.au
  // http://www.csse.monash.edu.au/~clm/
  // icq 26955922

To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org

View raw message