Re: [csswg-drafts] [css-values] Grammar syntax for defining excluded idents for <custom-ident> productions (#11924)

Can it be clarified whether `<custom-ident>` must explicitly exclude positionally-ambiguous keywords?

  > 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.

https://drafts.csswg.org/css-values-4/#custom-idents

---

In my opinion, production "attributes", e.g. `<custom-ident excludes="foo | bar">`, seem a nicer and more extensible syntax than this negated bracket range. The two syntaxes can coexist though.

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


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

Received on Thursday, 12 March 2026 06:33:18 UTC