W3C home > Mailing lists > Public > www-style@w3.org > March 2014

[css-animations] Which rules do findRule/deleteRule find/remove when there are duplicate keys?

From: Sylvain Galineau <galineau@adobe.com>
Date: Fri, 21 Mar 2014 01:12:50 +0000
To: "<www-style@w3.org>" <www-style@w3.org>
Message-ID: <0179ECD3-67BA-4034-B22F-AD1BABEB1609@adobe.com>
Following up on one of the issues Daniel recently raised [1].

In IE and Gecko, the last rule for the specified key wins.
In Blink and WebKit, rules are found/deleted in the order they were specified.

(Note that Gecko removes/finds the last rule i.e. this is not affected by its keyframe rule cascading [2]).

I would argue the IE/Gecko behavior makes the most sense since the rule that currently applies to the animation is removed; then the one that replaced it etc.
 


[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=25034
[2] http://lists.w3.org/Archives/Public/www-style/2014Mar/0497.html
Received on Friday, 21 March 2014 01:13:21 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:20 UTC