Re: Comments on CSS Transitions

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 UTC