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

[css-animations] What is the format of the key string passed to CSSKeyframesRule.findRule/deleteRule ?

From: Sylvain Galineau <galineau@adobe.com>
Date: Fri, 21 Mar 2014 01:21:03 +0000
To: "<www-style@w3.org>" <www-style@w3.org>
Message-ID: <BA5092BB-2F9E-4754-89E5-23178761694A@adobe.com>
I run in the following cross-browser issue while investigating the previous issue [1].

The specification defined the value passed to these methods as a string with the following property:

# The key must resolve to a number between 0 and 1, or the rule is ignored.

And indeed, if you do findRule("1") or deleteRule("0.5"), IE dutifully finds/removes the 100% and 50% keyframes, respectively.

No other browser does this, however. Gecko, WebKit and Blink all expect "100%" and "50%"

To mitigate any compat issues, one possible compromise would be to require browsers to support both in the future.

[1] http://lists.w3.org/Archives/Public/www-style/2014Mar/0498.html
Received on Friday, 21 March 2014 01:21:45 UTC

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