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

Re: [css3-2d-transforms] Interop: matrix() values e,f <number> or <length>

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Sun, 21 Nov 2010 15:51:16 -0500
Message-ID: <4CE98644.5010108@mit.edu>
To: Aryeh Gregor <Simetrical+w3c@gmail.com>
CC: Chris Marrin <cmarrin@apple.com>, www-style list <www-style@w3.org>
On 11/21/10 3:44 PM, Aryeh Gregor wrote:
> On Fri, Nov 19, 2010 at 3:01 PM, Boris Zbarsky<bzbarsky@mit.edu>  wrote:
>> On 11/19/10 1:26 PM, Chris Marrin wrote:
>>> This brings up a glaring problem with CSSMatrix. When you construct one,
>>> it is not associated with any element, so you can't use an element's style
>>> to convert units. Today, when we encounter the above CSSMatrix constructor I
>>> believe we just convert 50% to a value of 50 or something equally arbitrary.
>>> We should probably amend CSSMatrix to allow an element to be passed to the
>>> constructor. This brings up the next sticky issue of what happens when, for
>>> instance, the client size of the element changes. Do values in the CSSMatrix
>>> change? Madness!
>>
>> Agreed.  Why are we allowing percentages here again?  ;)
>
> Doesn't em cause the same problem?

Em is not as bad as percentages, since it's only affected by computed 
font style, not geometry.  But yes, rereading the original mail "50%" 
was a bad example, since there are lots of other things that are also 
not resolvable without an element (em, ex, rem, rex, at the very least).

-Boris
Received on Sunday, 21 November 2010 20:51:52 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:34 GMT