Re: [csswg-drafts] [css-contain-3][css-mediaqueries-5] Unified custom queries (#7622)

@jimmyfrasche do you have a link?

Current specification only has this: https://drafts.csswg.org/mediaqueries-5/#script-custom-mq

>  Define a map of names to values for JS. Values can be either a MediaQueryList object or a boolean, in which case it’s treated identically to the above, or can be a number or a string, in which case it’s treated like a normal MQ, and can use the normal or range context syntax. Like:
> 
> ```html
> <script>
> CSS.customMedia.set('--foo', 5);
> </script>
> <style>
> @media (_foo: 5) { ... }
> @media (_foo < 10) { ... }
> </style>
> ```

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


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

Received on Tuesday, 10 June 2025 20:37:51 UTC