Re: [csswg-drafts] [mediaqueries-5] Allow comparators / ranges in style queries (#11759)

this looks more like a `switch case` and not an `if else` block I would refactor your proposal like
```css
#target {
  background: switch(
    style(--num-children >= 10): red;
    style(8 <= --num-children < 10): orange;
    style(6 <= --num-children < 8): yellow;
    default: green;
  );
}
```

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


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

Received on Thursday, 10 April 2025 09:00:04 UTC