Re: [csswg-drafts] [css-values] Short-circuit if() evaluation (#11500)

Neither are "informative", they're both normative grammars used for parsing, just at different points in the processing cycle. It is definitely the case that, for example, authors need to know that `var()` expects to see `var( <custom-ident>, <declaration-value? )`; seeing `var( <declaration-value>, <declaration-value>? )` doesn't tell them anything. The fact that `var(1)` satisfies the second grammar is irrelevant for the author; it's still *invalid*, but now it's invalid at a different time (computed-value time rather than parse time) than it used to be. The distinction rarely matters for authors.

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


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

Received on Tuesday, 6 May 2025 20:42:04 UTC