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

[CSSOM] Revisiting transforms and getBoundingClientRect()

From: Andrew Dupont <w3@andrewdupont.net>
Date: Mon, 16 May 2011 05:10:57 -0500
Message-Id: <F1CB6513-BAD8-4CCA-8658-194EDEB7C2C8@andrewdupont.net>
To: www-style@w3.org
While investigating some odd test results I was getting in my experiments with CSS transforms, I found this thread [1] asking how transforms and getBoundingClientRect() are meant to interact. The thread seems to resolve (though without any sort of consensus) on the idea that ClientRect shouldn't be aware of transforms  i.e., when I apply a CSS transform to an element, the ClientRect returned by getBoundingClientRect() would be the same both before and after.

I'm digging this up only because the inconsistency described there is still present: WebKit's ClientRects are transform-aware, whereas Gecko's are not. I can't find any other thread in the archives which discusses this. Are there plans to specify one behavior or the other? And if the specified behavior is that ClientRects aren't transform-aware, will there be a future API that _is_ transform-aware?


[1] http://lists.w3.org/Archives/Public/www-style/2010Aug/0615.html
Received on Tuesday, 17 May 2011 08:58:14 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:38:46 UTC