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

Re: when do transitions occur?

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Thu, 15 Sep 2011 19:51:51 -0700
Message-ID: <CAAWBYDC47uBEjgXk3UoknGV9XH1MMseWRfxNni-89zS1_X0-jw@mail.gmail.com>
To: Jennifer Yu <Jennifer.Yu@microsoft.com>
Cc: "L. David Baron" <dbaron@dbaron.org>, Brian Manthos <brianman@microsoft.com>, "www-style@w3.org" <www-style@w3.org>
On Thu, Sep 15, 2011 at 7:13 PM, Jennifer Yu <Jennifer.Yu@microsoft.com> wrote:
> Also, can transitions occur for property value keywords that map to interpolatable values? Eg. font-weight:bold to font-weight: 100

Transitions fire when used values change, but operate over computed
values (currently, at least).  Thus, as long as the keyword turns into
a transitionable value at computed-value time, it's transitionable.

'font-weight' is a particularly weird example, because it doesn't
*really* have numeric values - the "numbers" are actually playing the
role of keywords.  Thus, if you tried to transition from
"font-weight:100" to "font-weight:200", all the values except the
start and end would be invalid.  This is why there's an issue at the
'font-weight' property in the "Transitionable Properties" table saying
"It's not that simple".

~TJ
Received on Friday, 16 September 2011 02:52:38 GMT

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