Re: [csswg-drafts] [css-contain] Allow container query style features to evaluate in a boolean? (#8127)

I think I caused a bit of confusion, sorry.

The evaluation of the query may not directly depend on the result of parsing. `invalid-property` matches `<ident>`, `color: invalid` matches `<declaration>`, and both evaluate to `unknown`.

I stand by my suggestion and extend it:

  > `<style-feature> = <declaration> | <ident>`

https://drafts.csswg.org/css-contain-3/#typedef-style-feature

  > `<style-feature>` is associated with a boolean result. If the UA does not accept that declaration (discarding it as a parse error) or property within a style rule, the result is false. If the computed value of the given property on the query container matches the given value (which is also computed with respect to the query container), the result is true. Otherwise it is unknown.

https://drafts.csswg.org/css-contain-3/#style-container

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


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

Received on Monday, 24 April 2023 07:06:54 UTC