W3C home > Mailing lists > Public > www-style@w3.org > January 2012

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Fri, 6 Jan 2012 15:23:07 +1300
Message-ID: <CAOp6jLb6Tz6wwoba8s8N068YoHzpqWWA_E2iNMeD3aY-_W8aaw@mail.gmail.com>
To: Aryeh Gregor <ayg@aryeh.name>
Cc: www-style@w3.org, "L. David Baron" <dbaron@dbaron.org>, Jet Villegas <jet@mozilla.com>
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 :-).

"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
Received on Friday, 6 January 2012 02:30:14 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:09 UTC