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

Re: [CSSOM] Interaction of getBoundingClientRect/getClientRects with transforms

From: Brad Kemper <brad.kemper@gmail.com>
Date: Tue, 31 Aug 2010 08:52:51 -0700
Cc: Boris Zbarsky <bzbarsky@MIT.EDU>, www-style list <www-style@w3.org>
Message-Id: <561EEE78-A2BF-4948-8A80-047921AEE1DB@gmail.com>
To: Simon Fraser <smfr@me.com>

On Aug 31, 2010, at 8:44 AM, Simon Fraser wrote:

>> For what it's worth, Gecko's behavior here is to determine a separate transform-origin for each box that's generated and then apply the transform to each box separately.  This means that something like:
>> 
>> <span style="-moz-transform: rotate(45deg);">x<br>x</span>
>> 
>> gets rendered with the two boxes offset from each other vertically by the line height and not offset horizontally and each rotated by 45 degrees clockwise.
> 
> That's probably what we'd want to do in WebKit. It's a bit odd, especially with rotations, but I think it makes more sense than transforming  all the boxes together (even though that would be easier for us to implement).

It seems unexpected to me. I expect it to act more like position:relative. Can you explain why it makes more sense, and what use case would benefit by doing the child inlines separately?
Received on Tuesday, 31 August 2010 15:53:27 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:13:49 UTC