Skip to content

Commit 7e9bd9c

Browse files
author
Sylvain Galineau
committed
[css-animations] CSS-wide keywords and animation-name keywords are invalid names for @Keyframes rules (Bug 25344)
1 parent d694687 commit 7e9bd9c

2 files changed

Lines changed: 18 additions & 6 deletions

File tree

css-animations/Overview.bs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,10 @@ The 'animation-name' property</h3>
401401
<dt><dfn><<custom-ident>></dfn>
402402
<dd>
403403
The animation will use the keyframes with the name specified by the <<custom-ident>>,
404-
if they exist.
405-
If no such keyframes exist,
406-
there is no animation.
404+
if they exist.If no such keyframes exist, there is no animation.
405+
406+
The <a href="http://www.w3.org/TR/css3-values/#common-keywords">CSS-wide keywords</a>
407+
and keywords defined by this property are not valid animation names.
407408
</dl>
408409

409410
<h3 id="animation-duration">
@@ -946,6 +947,11 @@ Attributes</h4>
946947
<dt><dfn>name</dfn>, of type <a interface>DOMString</a>
947948
<dd>
948949
This attribute is the name of the keyframes, used by the 'animation-name' property.
950+
951+
Setting this property to a value matching a
952+
<a href="http://www.w3.org/TR/css3-values/#common-keywords">CSS-wide keyword</a>
953+
or any keyword defined for the 'animation-name' property will throw a <a spec="webidl">SyntaxError</a>
954+
exception.
949955

950956
<dt><dfn>cssRules</dfn>, of type <a interface>CSSRuleList</a>
951957
<dd>

css-animations/Overview.html

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,9 +520,10 @@ <h3 class="heading settled heading" data-level=4.2 id=animation-name><span class
520520
<dt><dfn class=css-code data-dfn-for=animation-name data-dfn-type=value data-export="" id=valuedef-custom-ident><a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a><a class=self-link href=#valuedef-custom-ident></a></dfn>
521521
<dd>
522522
The animation will use the keyframes with the name specified by the <a class="production css-code" data-link-type=type href=http://dev.w3.org/csswg/css-values-3/#identifier-value title="<custom-ident>">&lt;custom-ident&gt;</a>,
523-
if they exist.
524-
If no such keyframes exist,
525-
there is no animation.
523+
if they exist.If no such keyframes exist, there is no animation.
524+
525+
<p> The <a href=http://www.w3.org/TR/css3-values/#common-keywords>CSS-wide keywords</a>
526+
and keywords defined by this property are not valid animation names.
526527
</dl>
527528

528529
<h3 class="heading settled heading" data-level=4.3 id=animation-duration><span class=secno>4.3 </span><span class=content>
@@ -961,6 +962,11 @@ <h4 class="heading settled heading" data-level=6.3.2 id=interface-csskeyframesru
961962
<dt><dfn class=idl-code data-dfn-for=csskeyframesrule data-dfn-type=attribute data-export="" id=dom-csskeyframesrule-name>name<a class=self-link href=#dom-csskeyframesrule-name></a></dfn>, of type <a class=idl-code data-link-type=interface title=domstring>DOMString</a>
962963
<dd>
963964
This attribute is the name of the keyframes, used by the <a class=property data-link-type=propdesc href=#propdef-animation-name title=animation-name>animation-name</a> property.
965+
966+
<p> Setting this property to a value matching a
967+
<a href=http://www.w3.org/TR/css3-values/#common-keywords>CSS-wide keyword</a>
968+
or any keyword defined for the <a class=property data-link-type=propdesc href=#propdef-animation-name title=animation-name>animation-name</a> property will throw a <a data-link-spec=webidl data-link-type=dfn href=https://heycam.github.io/webidl/#syntaxerror title=syntaxerror>SyntaxError</a>
969+
exception.
964970

965971
<dt><dfn class=idl-code data-dfn-for=csskeyframesrule data-dfn-type=attribute data-export="" id=dom-csskeyframesrule-cssrules>cssRules<a class=self-link href=#dom-csskeyframesrule-cssrules></a></dfn>, of type <a class=idl-code data-link-type=interface href=http://dev.w3.org/csswg/cssom-1/#cssrulelist title=cssrulelist>CSSRuleList</a>
966972
<dd>

0 commit comments

Comments
 (0)