W3C home > Mailing lists > Public > www-style@w3.org > September 2013

Re: [cssom-view] Correction and clarification for the coordinate systems of getClientRect/getBoundingClientRect

From: Simon Pieters <simonp@opera.com>
Date: Wed, 18 Sep 2013 14:55:34 +0200
To: www-style <www-style@w3.org>, "Robert O'Callahan" <robert@ocallahan.org>
Message-ID: <op.w3lx6wx0idj3kv@simons-macbook-pro.local>
On Fri, 25 Nov 2011 01:12:06 +0100, Robert O'Callahan  
<robert@ocallahan.org> wrote:

> The spec needs to make clear that getClientRects() returns rectangles  
> that
> include the effect of transforms on ancestor elements. In particular each
> box rectangle is transformed by the ancestor transforms and then we take
> the viewport axis-aligned bounding-box of the result. Existing content
> requires this and it's more useful than not taking transforms into  
> account.
> Gecko will change to have this behavior and other browsers already do.
>
> [snip] Geometry changes
> induced by SVG should be included in the transforms accounted for in my
> previous paragraph.

Fixed.

https://dvcs.w3.org/hg/csswg/rev/d6d6ed08b91a

-- 
Simon Pieters
Opera Software
Received on Wednesday, 18 September 2013 12:56:11 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:32 UTC