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-animations-1] Undefined procedures to get/set CSSOM attributes #9364

Open
cdoublev opened this issue Sep 15, 2023 · 1 comment
Open
Labels
css-animations-1 Current Work

Comments

@cdoublev
Copy link
Collaborator

cdoublev commented Sep 15, 2023

The procedures to get/set CSSKeyframesRule.name and CSSKeyframeRule.keyText are loosely worded:

interface CSSKeyframesRule : CSSRule {
  attribute CSSOMString name;
  // ...
};

name, of type CSSOMString

This attribute is the name of the keyframes, used by the animation-name property.

https://drafts.csswg.org/css-animations-1/#interface-csskeyframesrule-idl

Related: #2435

interface CSSKeyframeRule : CSSRule {
  attribute CSSOMString keyText;
  // ...
};

keyText, of type CSSOMString

This attribute represents the keyframe selector as a comma-separated list of percentage values. The from and to keywords map to 0% and 100%, respectively.

If keyText is updated with an invalid keyframe selector, a SyntaxError exception must be thrown and the value of keyText must remain unchanged.

https://drafts.csswg.org/css-animations-1/#interface-csskeyframerule-idl

@cdoublev
Copy link
Collaborator Author

cdoublev commented Sep 16, 2023

Related: #9363.

the CSS parsing restrictions aren't really relevant here, since we're not in CSS. Being able to make a counter called "1st" should be easily doable in JS, even if you have to escape it in your stylesheet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
css-animations-1 Current Work
Projects
None yet
Development

No branches or pull requests

1 participant