[CSSOM] Revisiting transforms and getBoundingClientRect()

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?

Cheers,
Andrew

[1] http://lists.w3.org/Archives/Public/www-style/2010Aug/0615.html

Received on Tuesday, 17 May 2011 08:58:14 UTC