Re: [csswg-drafts] [css-values] Conditional syntax for `if()` (#8446)

> inline `if()` is the only missing piece for being able to use higher level custom properties to customize web components, 

Once we have style container queries with [extended style query syntax](https://github.com/w3c/csswg-drafts/issues/7068), do we still need to have `if()` for customizing web components with CSS variables? Can you give an example that can not be done with style queries? Or do we want to give another practical option to the developers?

Web components always have a container and variables will be always applied to the container element. As far as I see, `if()` is only helpful if you don't want to rely on a container, or as an "alternative" to style queries. Am I missing a point here?

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


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

Received on Wednesday, 15 February 2023 16:36:35 UTC