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

Re: [css3-values][css3-transforms] relative length in functional notation

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 11 Apr 2012 13:15:40 -0400
Message-ID: <4F85BC3C.9050107@mit.edu>
To: "Kang-Hao (Kenny) Lu" <kennyluck@csail.mit.edu>
CC: WWW Style <www-style@w3.org>
On 4/11/12 10:04 AM, Kang-Hao (Kenny) Lu wrote:
> data:text/html,<!DOCTYPE html>
> <div style="background-color: blue; font-size: 2em;
>              width: calc(1em); height: 1em;
>               transform: translateX(1em);">
>    <div style="background-color: red; font-size: 0.5em;
>                width: inherit; height: 1em; transform: inherit">
>    </div>
> </div>  (unprefixed)
>
> , Firefox14a but not IE9 resolves relative unit *in calc()*. Firefox14a,
> Operal12alpha and IE9 but not Chromium18 *don't* resolve relative unit
> in translateX(), matching Areyh's observation[1].

WebKit nightly resolves the relative unit in both calc() and 
translateX(), if I understand the testcase correctly.  In particular, it 
matches Firefox for calc().

-Boris
Received on Wednesday, 11 April 2012 17:16:13 GMT

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