Re: [csswg-drafts] [css-contain-4] Extend style query syntax? (#7068)

Actually, thinking about it, we can do this with the current syntax (provided we get ranges), by simply using a helper variable:

```css
.container {
 --accent-color-l: color-extract(lab.l of var(--accent-color));
}

@container style(--accent-color-l > 80) {
 /* .. */
}
```

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


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

Received on Monday, 30 January 2023 18:22:06 UTC