- From: Romain Menke via GitHub <noreply@w3.org>
- Date: Tue, 10 Jun 2025 20:37:50 +0000
- To: public-css-archive@w3.org
@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