Re: Layout Information for SVG Elements
Boris Zbarsky <[email protected]> Tue, 24 Nov 2009 20:30:55 -0500
| Newsgroups | gmane.comp.mozilla.devel.svg |
|---|---|
| Message-ID | <[email protected]> |
On 11/24/09 7:19 PM, Steven Roussey wrote: > Well... if the option "Show Bounding Client Rectangle" is selected, > then it shows data. Otherwise, it does not. > > But anyway, if the option is off then it shows offsets and uses > element.offset* which results in nothing, and height/width of NaN. You should, imo, just drop the offset* stuff. It's broken and useless. > Looking at the svg of a circle here: > http://math.chapman.edu/~jipsen/mathml/asciimathandmathmlsvg.xhtml > > <svg:svg width="50px" height="50px"> > <svg:circle cx="25px" cy="25px" r="20px" fill="green"/> > </svg:svg> > > It says it has a width and height of 40px. Height and width of which? The <svg:circle> or the <svg:svg>? The former in fact has a bounding rect with width=height=40px. -Boris