W3C home > Mailing lists > Public > www-style@w3.org > September 2011

Re: when do transitions occur?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Wed, 14 Sep 2011 03:03:30 -0700
Message-ID: <CAAWBYDDJdVUB8-08fXmiT36t85RicXvg4_rCC9huEcqxS8-o7g@mail.gmail.com>
To: Jennifer Yu <Jennifer.Yu@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
On Tue, Sep 13, 2011 at 7:30 PM, Jennifer Yu <Jennifer.Yu@microsoft.com> wrote:
> I have a question around Transitions/Animations. When exactly do
> transitions/animations occur? I’m a bit unclear on this point. Do they occur
> if delay and duration are both 0s?
> The wording in the spec (“By default the value is ‘0’, meaning that the
> transition is immediate”)  seems to suggest that a transition/animation does
> occur even if duration is 0s. Given that the initial value for
> transition-property is ‘all’, wouldn’t that mean that on a page with no
> specified transitions, every single property change is causing events to be
> thrown?

That's been brought up as unclear spec text before, and just hasn't
been changed yet.  If the duration is 0, no transition occurs, and no
events are thrown.

> And what happens when a shorthand property is changed and a transition is
> kicked off? Is it a single transition with 1 event thrown for the shorthand,
> or are the longhands transitioning with an event thrown for each? Or are
> they all transitioning, with 1 event thrown for the shorthand and an event
> thrown for each transitioning longhand?

Not sure about the intent of this one.

Received on Wednesday, 14 September 2011 10:04:21 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:04 UTC