W3C home > Mailing lists > Public > www-style@w3.org > February 2009

Re: Comments on CSS Transitions

From: Giovanni Campagna <scampa.giovanni@gmail.com>
Date: Fri, 27 Feb 2009 19:05:58 +0100
Message-ID: <65307430902271005l3b11d180jd105c3374acd04f1@mail.gmail.com>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: www-style@w3.org, www-svg@w3.org
2009/2/27 Tab Atkins Jr. <jackalmage@gmail.com>:
> On Fri, Feb 27, 2009 at 11:04 AM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
>> Tab Atkins Jr. wrote:
>>> The start and end values, similarly, seem to obviously be the previous
>>> specified value, and the newly specified value.
>>
>> Note that the computed value might change without the specified value
>> changing, and vice versa.
>
> Hmm, could you give an example?  It seems clear that the *used* value
> can change without the specified value changing (frex, the width of
> the containing block can change, altering the used value of a
> percentage-width child), but I don't see how the computed value can do
> so.

If the specified value is "inherit", or is a percentage (in some
properties like line-height) / relative unit (em, rem, ex, ch...), or
the computed depends on other properties (like the computed value for
top in relative positioned elements), then the latter may change with
the same specified value. This should trigger transitions.

That is, answering also to David Hyatt, if I say :root { width: 100% }
I should not have a transition on width when the window is resized,
but if I say :root { width: 100vw; } I should have.

> ~TJ
>
>

Giovanni
Received on Friday, 27 February 2009 18:06:33 GMT

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