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

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 UTC