I am getting different results in various browsers in the getBBox()
function.  Using the code:

<svg xmlns="http://www.w3.org/2000/svg";
     onload="g_onload()">

  <defs>
    <script>
<![CDATA[

function g_onload() {
  var test = document.getElementById("test")
  var bbox = test.getBBox()
  alert("x="+bbox.x+" y="+bbox.y+" width="+bbox.width+"
height="+bbox.height)
}

]]>
    </script>
  </defs>

  <g id="test" >
   <rect x="10" y="10" width="25" height="10" />
    <g display="none" >
     <rect x="10" y="20" width="50" height="10" />
    </g>
  </g>
</svg>

to test, I think the second rectangle should not be computed in the
BBox because of the display="none" attribute so the results in the
alert box should read: "x=10 y=10 width=25 height=10"

Result 2 is "x=10 y=10 width=50 height=20" when the second rectangle
is also computed.

Which is correct?

Current results:
IE/ASV     Result 2
Opera      Result 2
Safari     Result 1
Mozilla    Result 1
Batik      Result 1

Thanks!
Bruce



-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/svg-developers/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to