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
Same for container query relative units, I suspect that the best behavior involves some gymnastics with the container and child effective zoom values. Not sure what browsers implement there (Firefox doesn't zoom them at all so they use the coordinate space of the container).
emilio
changed the title
[css-viewport] [css-container-queries] Zoom and container queries
[css-viewport] [css-contain] Zoom and container queries
Apr 29, 2024
I don't think we made a conscious choice here, but the width/height of the container in CSS pixels as seen by the container just follows from the implementation.
How should CSS zoom be handled (if at all) in a
@container
query?A container query like
@container (width > 100px) { }
is rather weird wrt CSS zoom. Should it use pixels:Safari disagrees with Chrome / Firefox on this test-case:
Same for container query relative units, I suspect that the best behavior involves some gymnastics with the container and child effective zoom values. Not sure what browsers implement there (Firefox doesn't zoom them at all so they use the coordinate space of the container).
cc @chrishtr @lilles @andruud @nt1m @mirisuzanne @tabatkins
The text was updated successfully, but these errors were encountered: