Re: [csswg-drafts] [css-contain-4] Define a range syntax for style container queries (#8376)

> > but also `style(10px < 10em)` which we could disallow if we think it doesn't fit here.
> 
> I don't think there is any reason to disallow this, as this can be a quite common use. Probably not on its own (although, you _could_ want to check the value of `1em`), but when used with mixed custom properties.

Then I guess we'd also allow e.g. `style(var(--x) < var(--y))`? If yes, then e.g. `style(--x < 10px)` is basically syntax sugar for `style(var(--x) < 10px)`.

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


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

Received on Wednesday, 26 March 2025 13:07:28 UTC