Re: [csswg-drafts] Ambiguity in transition shorthand property as defined by grammar (#12494)

In my opinion, what comes after the text that you quoted make this perfectly clear:

  > When parsing positionally-ambiguous keywords in a property value, a `<custom-ident>` production can only claim the keyword if no other unfulfilled production can claim it.
  >
  > For example, the shorthand declaration `animation: ease-in ease-out` is equivalent to the longhand declarations `animation-timing-function: ease-in; animation-name: ease-out;`. `ease-in` is claimed by the `<easing-function>` production belonging to animation-timing-function, leaving `ease-out` to be claimed by the `<custom-ident>` production belonging to `animation-name`.

`<custom-ident>` has lower priority than pre-defined keywords, regardless of its position in the grammar. Its value range may also restricted in prose in some contexts.

There is no need to add anything specific for `transition`. A reminder about the above requirement would still be helpful though.

-- 
GitHub Notification of comment by cdoublev
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12494#issuecomment-3086502871 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 18 July 2025 03:00:17 UTC