Re: when do transitions occur?

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 UTC