You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 or even style queries.
If from a technical stand point it isn't possible to get a unified solution for queries, this is a proposal for reusable custom-queries for supports & container, e.g. @custom-container fand @custom-supports.
The text was updated successfully, but these errors were encountered:
Que-tin
changed the title
[css-contain-3][css-mediaqueries-5] Custom container queries
[css-contain-3][css-mediaqueries-5] Unified custom queries
Aug 18, 2022
Uh oh!
There was an error while loading. Please reload this page.
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 or even style queries.Proposed
@custom-query
SolutionIf from a technical stand point it isn't possible to get a unified solution for queries, this is a proposal for reusable custom-queries for supports & container, e.g. @custom-container fand @custom-supports.
The text was updated successfully, but these errors were encountered: