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

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