Re: [css3-2d-transforms] New WIP CSS 2D Transforms tests

On Fri, Jan 6, 2012 at 9:40 AM, Aryeh Gregor <ayg@aryeh.name> wrote:

> For instance, to test various values for transform, I wrote a function
> that's called like
>    testTransform("scale(3)", 3, 0, 0, 1, 0, 0);
> which sets style="transform: scale(3)" on a square div, then computes
> where the four corners should be by applying the matrix [3, 0, 0, 1,
> 0, 0] to the initial four corners, then checks that
> getBoundingClientRect() returns the right values, as well as checking
> getComputedStyle().
>

Currently CSSOM Views doesn't say whether getBoundingClientRect should
include the effect of transforms, so technically you're depending on
unspecified behavior. Gecko only very recently changed to match IE and
Webkit by including the effect of transforms. Whoever's editing CSSOM Views
should fix this by tightening that spec. Maybe it has no editor and you
should do that :-).

Rob
-- 
"If we claim to be without sin, we deceive ourselves and the truth is not
in us. If we confess our sins, he is faithful and just and will forgive us
our sins and purify us from all unrighteousness. If we claim we have not
sinned, we make him out to be a liar and his word is not in us." [1 John
1:8-10]

Received on Friday, 6 January 2012 02:30:14 UTC