[wpt-sync] Sync PR 23974 - Revert "CSS @media (width: *px) may not work if devicePixelRatio is greater than 1."
Categories
(Testing :: web-platform-tests, task, P4)
Tracking
(firefox79 fixed)
Tracking | Status | |
---|---|---|
firefox79 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 23974 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/23974
Details from upstream follow.
Jinfeng Ma <majinfeng1@xiaomi.com> wrote:
Revert "CSS @media (width: *px) may not work if devicePixelRatio is greater than 1."
This reverts commit 6c7fa9eae2437a99d8a4f1b0835030b688bc9285.
Reason for revert: https://github.com/w3c/csswg-drafts/issues/4713
Original change's description:
CSS @media (width: *px) may not work if devicePixelRatio is greater than 1.
When devicePixelRatio is greater than 1, the viewport size of the CSS media
query may appear as non-integers. This can happen in Chrome for Android if
the UseZoomForDSF flag is enabled.For example:
\<meta name="viewport" content="width=device-width, initial-scale=1">
\<style>
@media (width: 393px) {
p {
color: red;
}
}
\</style>
\<p>text\</p>If the device width is 1081 physical pixels and devicePixelRatio is 2.75. The
viewport width of the CSS media query will be 393.091px.Change-Id: I25ee4da1ebdbd57202fa8c5e360138a8058f578f
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1695522
Commit-Queue: David Bokan \<bokan@chromium.org>
Reviewed-by: David Bokan \<bokan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#680047}TBR=dcheng@chromium.org,bokan@chromium.org,majinfeng1@xiaomi.com
Bug: 1043456
Change-Id: Idd69f034a59a3161b244c0921637e787118718ecReviewed-on: https://chromium-review.googlesource.com/2228028
WPT-Export-Revision: dbb7aa68b951e3ccebbc5da39b68d8571224cf49
Assignee | ||
Comment 1•4 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=a04280c79e13bcfabdd3a13cfbe4cddd89df2e37
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/da6eb0de8359 [wpt PR 23974] - Revert "CSS @media (width: *px) may not work if devicePixelRatio is greater than 1.", a=testonly
Assignee | ||
Comment 3•4 years ago
|
||
Test result changes from PR not available.
Comment 4•4 years ago
|
||
bugherder |
Description
•