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

RE: [css3-transitions] Can/should a change of currentColor's computed value trigger a transition ?

From: Sylvain Galineau <sylvaing@microsoft.com>
Date: Sat, 12 Feb 2011 00:12:12 +0000
To: Tab Atkins Jr. <jackalmage@gmail.com>
CC: "www-style@w3.org" <www-style@w3.org>
Message-ID: <045A765940533D4CA4933A4A7E32597E2AB5C8DF@TK5EX14MBXC120.redmond.corp.microsoft.com>
[Tab Atkins:]
> Do transitions fire based on the specified or computed value?  I can't
> seem to find language in the spec specifying one way or the other, but
> some simple testing seems to show that webkit uses specified value:

The computed value is updated throughout the transition but it's triggered
by the property being updated (with the exceptions of updates caused by 
other declarative animations and inherited value). In this case it's a 
little tricky because background-color itself is not being updated but 
its computed value will change. 

> data:text/html,<!doctype html><div id=foo><div id=bar></div></div><input
> type=range min=20 value=100 step=20 onchange="foo.style.width = this.value
> + '%'"><style>#foo { border:
> thick solid blue; } #bar { border: thick solid green; height: 2em;
> width: 50%; margin: 0 auto; transition: width 1s;}</style>
> Anyway, answering that question will answer the specific question you
> have.

Not quite. Given that the background color will change and that he explicitly 
specified asked for that property to transition, wouldn't the author be right
to expect the background color to transition in this case as well ? The answer 
to that question will tell us what the spec should say. 
Received on Saturday, 12 February 2011 00:12:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:07:56 UTC