[css-animations] findRule/deleteRule key argument

Per a recent resolution of this bug [1], I have started describing browser 
behavior after running some simple tests [2]. In particular:

- The key argument is really a keyframe selector. 
- A keyframe selector is a list of one or more values each of which is 
either a percentage or one of ‘from’/‘to’.

Couple of issues:
- Some browsers are white-space sensitive. I do not think that should be 
the case. Specifically, WebKit/Blink fail to find/delete the ’25%,50%’ 
rule in the test if a space is added somewhere. 
- Second, we need to agree on which rule gets returned/deleted when 
multiple rules have the same keyframe selector. Currently, WebKit/Blink 
return the first rule with a matching keyframe selector. Win10 IE and 
Firefox return the last. I think both methods should be consistent - i.e. 
we do not want findRule to return the first and deleteRule to remove the 
last - but I do not have a strong opinion as to the default. Thoughts?



[1] https://www.w3.org/Bugs/Public/show_bug.cgi?id=14788

[2] http://jsbin.com/jelili/3/edit

Received on Monday, 8 December 2014 23:09:05 UTC