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

I cannot see how `fn({})` could reasonably match `fn(<declaration-value>?)`, since the argument does not match `<declaration-value>` but is also not omitted (the input is not fully consumed). `?` is not part of the comma-containing production, unless otherwise specified (excluding other multipliers).

And it seems a bit odd that `color: first-valid({}, red)` should be invalid because its arguments do not match `<declaration-value>#`.

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


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

Received on Friday, 18 October 2024 07:19:18 UTC