W3C home > Mailing lists > Public > www-style@w3.org > August 2011

Re: [cssom-view] 6.1 getBoundingClientRect with SVG content

From: Anne van Kesteren <annevk@opera.com>
Date: Thu, 04 Aug 2011 13:11:16 +0200
To: www-style@w3.org, "Robert Longson" <longsonr@gmail.com>
Message-ID: <op.vzor02gt64w2qv@annevk-macbookpro.local>
On Thu, 04 Aug 2011 12:40:07 +0200, Robert Longson <longsonr@gmail.com>  
wrote:
> The description of getBoundingClientRect for SVG content does not
> match what IE and Firefox have implemented. In SVG the getBBox method
> [1] excludes the stroke of an object, whereas the implementation of
> getBoundingClientRect in both IE 9 and Firefox includes the stroke. I
> believe there is no way to get the stroke extents in SVG if
> getBoundingClientRect won't do it.
>
> Should the specification change to match what's implemented?

The specification does not state to use the getBBox method. I am not sure  
what it should say exactly there though. The current text is based on a  
suggestion from roc if I remember correctly.


> [1] http://www.w3.org/TR/SVG/types.html#InterfaceSVGLocatable


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Thursday, 4 August 2011 11:11:46 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:43 GMT