Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[css-animation-1] Error handling for invalid CSSKeyframesRule.name #7313

Closed
cdoublev opened this issue May 26, 2022 · 0 comments
Closed

[css-animation-1] Error handling for invalid CSSKeyframesRule.name #7313

cdoublev opened this issue May 26, 2022 · 0 comments

Comments

@cdoublev
Copy link
Collaborator

cdoublev commented May 26, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant