Re: [csswg-drafts] [css-values-5] Should an empty `{}` match `<declaration-value>` and `<any-value>` in functions? (#11043)

Matching an optional production with a "concrete" token seems somewhat unusual for a language parser but in hindsight, I think no clarification is needed. `first-valid()` is intentionally defined to accept non-empty arguments, so there is no reason for an author to expect `first-valid({}, valid)` to be valid if it already knows `first-valid(, valid)` is not.

So closing as question answered.

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


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

Received on Tuesday, 22 October 2024 12:24:56 UTC