Skip to content

Conversation

@javifernandez
Copy link
Contributor

@javifernandez javifernandez commented Oct 20, 2025

Per resolution:

#2435 (comment)

  1. Accept <string> or <custom-ident> as we currently do.
  2. If <string> is one of the CSS-wide keywords or "default" then it is invalid (at parse / variable-resolution time) as per the rules for custom-idents: https://www.w3.org/TR/css-values-3/#custom-idents
  3. When serializing, if the value doesn't have whitespace(??) serialize without quotes (i.e. as ), otherwise serialize as <string>.

Fixes issues #2435 and #7762

@javifernandez javifernandez marked this pull request as draft October 20, 2025 21:24
@javifernandez javifernandez force-pushed the animation-name-strings branch from 9dff371 to 14d9631 Compare October 20, 2025 22:43
@javifernandez javifernandez marked this pull request as ready for review October 20, 2025 22:43
@bkardell
Copy link
Contributor

I'm really not sure this should have been merged, there are definitely some disagreements. This would make 2 otherwise interoperable implementations incorrect on quoted names, right? And @nt1m is making a case on one of the linked issues that it doesn't make sense.

Also, minor nit but

hence parsed as invalid if is one of

doesn't this miss the work "it"?

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

Successfully merging this pull request may close these issues.

4 participants