Re: [csswg-drafts] [css-conditional-3] `CSS.supports(--custom, value)` should not accept any value (#8823)

Agreed, that needs a fix to actually try and parse the value.

> However I am also unconfortable with "successfully parses according to that property’s grammar" because CSS.supports('color', 'var(--custom)') returns true but var(--custom) is not really part of color's grammar.

Variables defines that `var()` is valid in any property, and its presence changes the grammar of the property to be valid. So it's fine to match against the property grammar still.

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


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

Received on Thursday, 18 May 2023 20:30:07 UTC