You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no error handling for declaring an invalid CSSKeyframesRule.name, defined as:
attribute CSSOMString name
name, of type CSSOMString: This attribute is the name of the keyframes, used by the animation-name property.
I suggest to define the same behavior as for declaring an invalid CSSKeyframeRule.keyText: If name is updated with an invalid <keyframes-name>, a SyntaxError exception must be thrown and the value of name must remain unchanged.
EDIT: after reading #2435, related issues/PRs, and testing current browsers output, noting that @keyframes initial {} is valid in Chrome but not @keyframes "initial" {}, etc... the absence of error handling seems to be expected because CSSKeyframesRule.name is expected to be serialized as a string (with quotes) when it is not a valid <custom-ident> | <string> , therefore I close this issue.
The text was updated successfully, but these errors were encountered:
There is no error handling for declaring an invalid
CSSKeyframesRule.name
, defined as:I suggest to define the same behavior as for declaring an invalid
CSSKeyframeRule.keyText
: Ifname
is updated with an invalid<keyframes-name>
, aSyntaxError
exception must be thrown and the value ofname
must remain unchanged.EDIT: after reading #2435, related issues/PRs, and testing current browsers output, noting that
@keyframes initial {}
is valid in Chrome but not@keyframes "initial" {}
, etc... the absence of error handling seems to be expected becauseCSSKeyframesRule.name
is expected to be serialized as a string (with quotes) when it is not a valid<custom-ident> | <string>
, therefore I close this issue.The text was updated successfully, but these errors were encountered: