[csswg-drafts] [css-contain-3][css-mediaqueries-5] Custom container queries (#7622)

Que-tin has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-contain-3][css-mediaqueries-5] Custom container queries ==
The spec for Media Queries Level 5 currently specifies a way to define custom media properties like e.g. `@custom-media --modern (color), (hover);` with CSS Containment currently getting shipped beforehand, wouldn't it make sense to rename @custom-media to @custom-query, to create a reusable and unified way for creating custom properties that are including a query?

I mean if I get the idea of the current draft correctly, values inside of  `@custom-media` could also be used inside of @container and @supports as well. But these aren't media, but feature & containment / container queries.

If from a technical stand point it isn't possible to get  a unified solution for queries, this is a proposal for a e.g. @custom-container for custom container queries.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7622 using your GitHub account


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

Received on Thursday, 18 August 2022 21:33:10 UTC