[wpt-sync] Sync PR 34682 - Add new devicePixel ref test
Categories
(Core :: Layout, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox104 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream error])
Sync web-platform-tests PR 34682 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/34682
Details from upstream follow.
Gregg Tavares <gman@chromium.org> wrote:
Add new devicePixel ref test
What the test does:
It sets the body to have a 2x2 checkerboard pattern fit to devicePixels (1 pixel in the pattern = 1 devicePixel)
It then puts a bunch of children above that in rows and uses
devicePixelContentBoxSize
to compute where each child is. It sets the same pattern for each child and offsets the pattern based on the child's calculated position so the patterns should align. If they don't align because the values returned fromdevicePixelContentBoxSize
it should be very clear.Here's Chrome running the test
<img width="692" alt="スクリーンショット 2022-07-01 午後6 28 34" src="https://user-images.githubusercontent.com/234804/176981813-67838b4a-2192-412e-b49a-0ea7a1486b92.png">
Here's Firefox running the test
<img width="691" alt="スクリーンショット 2022-07-01 午後6 27 50" src="https://user-images.githubusercontent.com/234804/176981810-6239c66c-f531-4fe0-8575-44088f464604.png">
Related:
https://github.com/web-platform-tests/wpt/pull/34569
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Comment 1•2 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=641ca78e8f42b04a07a1694415673a3e91032f80
Assignee | ||
Comment 2•2 years ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 1 tests
Status Summary
Firefox
PASS
: 1
Chrome
PASS
: 1
Safari
PASS
: 1
Links
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7a49df869b2e [wpt PR 34682] - Add new devicePixel ref test, a=testonly
Comment 4•2 years ago
|
||
bugherder |
Description
•