- From: Andrew Hudson via GitHub <noreply@w3.org>
- Date: Fri, 12 Sep 2025 08:51:38 +0000
- To: public-css-archive@w3.org
@kizu yes thanks for this! I've tested out in latest Chrome Canary (Now that style query range is supported) and the following works:
```css
body {
background-color: if(
style(100cqi > 1000px): green;
style(100cqi > 800px): orange;
style(100cqi > 600px): red;
else: rebeccapurple;
);
}
```
see in Chrome Canary latest https://codepen.io/bigandy/pen/qEOGGQB
--
GitHub Notification of comment by bigandy
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12069#issuecomment-3284362976 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 12 September 2025 08:51:39 UTC