W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2016

[csswg-drafts] [css-animations] Allow CSSKeyframesRule.name to set reserved values

From: Manish Goregaokar via GitHub <sysbot+gh@w3.org>
Date: Tue, 13 Dec 2016 22:35:32 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-195388731-1481668530-sysbot+gh@w3.org>
Manishearth has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-animations] Allow CSSKeyframesRule.name to set reserved values
 ==
https://drafts.csswg.org/css-animations/#dom-csskeyframesrule-name

> Setting this property to a value matching a CSS-wide keyword or any 
keyword defined for the animation-name property will throw a 
SyntaxError exception. 


However, it is already possible to create a keyframes rule with a name
 matching a CSS-wide keyword using a string -- `@keyframes "initial" 
{..}` works (See 
https://drafts.csswg.org/css-animations/#typedef-keyframes-name and 
Example 2 below it). The DOM setter should be able to create such 
rules, so we should remove the ability for the setter to throw a 
syntax error and allow all strings.

cc @canaltinova @dbaron 

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/801 using your GitHub 
account
Received on Tuesday, 13 December 2016 22:35:38 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:06 UTC