Re: [csswg-drafts] [css-extensions] Custom container queries (#8121)

The majority of my desire for custom media queries was so I could do `matchMedia('(--foo)')` in a js component and not have to worry about the js saying 546px but the css saying 547px or having to add more build step for this one thing.

If there's ever a js api for container queries that same want would arise.

Although if the js api allowed style queries I could just listen for a custom property and set it to different sentinel values at the various component breakpoints.

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


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

Received on Tuesday, 22 November 2022 17:54:52 UTC