Use Logical Properties for v4 Container Queries #16737
OverflowCat
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
v4 introduces container queries using the
@container
at-rule. However, the current implementation has a limitation.Consider this example:
This generates the following CSS:
Notice that
container-type
only supportssize
,inline-size
, andnormal
– logical values, but the generated container query uses the physicalwidth
property.Proposal
Why not use logical properties directly within the container query? Instead of
width < 28rem
, we could generate@container (inline-size < 28rem)
.Reasons
-x
and-y
with-inline
and-block
in PR Useinline
andblock
for x/y utilities #14805. This change aligns with that direction.This change would require that #13389 be modified, though. cc @adamwathan and @brandonmcconnell
Beta Was this translation helpful? Give feedback.
All reactions