Skip to content

[css-animations-1] Use range notation for <keyframe-selector> as a percentage #7140

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

Closed
cdoublev opened this issue Mar 14, 2022 · 2 comments
Closed

Comments

@cdoublev
Copy link
Collaborator

<keyframe-selector> is defined as follows:

<keyframe-selector> = from | to | <percentage>

Values less than 0% or higher than 100% are invalid and cause their <keyframe-block> to be ignored.

I think it can be explicitly defined with the CSS bracketed range notation.

<keyframe-selector> = from | to | <percentage [0,100]>

@Loirooriol
Copy link
Contributor

https://drafts.csswg.org/css-values-4/#numeric-ranges talks about values in properties, so maybe it should be generalized a bit.

@cdoublev
Copy link
Collaborator Author

Oh, that is right.

Actually, I did not want to create this issue because I have a list of those value definitions that can benefit from the range notation, and my intent was to report them in a single issue, as a reference (task list) for spec editors. It is noted that at the time of writing, the bracketed range notation is new; thus in most CSS specifications any range limitations are described only in prose. It just came out of my mind yesterday.

I hope you do not mind me closing this issue for now and recreating it later with a link to your comment on extending usage/definition of the range notation to CSS rules (maybe in Syntax).

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

2 participants