Repository navigation
layout: Enable device-width/device-height media queries - #44978
Conversation
|
🔨 Triggering try run (#27227728808) for Linux (WPT) |
|
|
Test results for linux-wpt from try job (#27227728808): Flaky unexpected result (56)
Stable unexpected results that are known to be intermittent (15)
|
|
✨ Try run (#27227728808) succeeded. |
mrobinson
left a comment
There was a problem hiding this comment.
Nice. I have a couple specific comments below and one general one: instead of using the terminology device_size in paint, I think we should stick to screen_size. The media query API may use "device size," but a device might have multiple screens, so I think internally, especially not in layout, we should be clear that this is the size of the current screen.
mrobinson
left a comment
There was a problem hiding this comment.
Thanks! Just a couple minor comments before landing:
Servo PR: servo/servo#44978 Signed-off-by: Josh Matthews <[email protected]>
fb0454d to
cf8cea8
Compare
Servo PR: servo/servo#44978 Signed-off-by: Josh Matthews <[email protected]>
device-width/device-height media queries
Signed-off-by: Josh Matthews <[email protected]>
dfd7329 to
432ca8e
Compare
Signed-off-by: Martin Robinson <[email protected]>
|
Way too many test failures panicking in the new code to justify trying this again. |
|
I've pushed a fix to this that fixes the failing tests surfacing in #46016. |
Servo PR: servo/servo#44978 Signed-off-by: Josh Matthews <[email protected]>
Servo PR: servo/servo#44978 Signed-off-by: Josh Matthews <[email protected]>
This change propagates the embedder's screen geometry's width/height down to the layout's device so it can be used to evaluate device-width and device-height media queries.
Stylo PR: servo/stylo#368
Testing: Many new passing tests.
Fixes: Part of #39068
Fixes: #44940