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

[css-animations] findRule/deleteRule key argument

From: Sylvain Galineau <galineau@adobe.com>
Date: Mon, 8 Dec 2014 23:08:35 +0000
To: "www-style@w3.org" <www-style@w3.org>
Message-ID: <29773D27-DD82-4D5C-B61D-DECBD19D08C2@adobe.com>
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

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:49 UTC