Closed Bug 1777760 Opened 2 years ago Closed 2 years ago

[wpt-sync] Sync PR 34682 - Add new devicePixel ref test

Categories

(Core :: Layout, task, P4)

task

Tracking

()

RESOLVED FIXED
104 Branch
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 from devicePixelContentBoxSize 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

Component: web-platform-tests → Layout
Product: Testing → Core
Whiteboard: [wptsync downstream] → [wptsync downstream error]

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

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7a49df869b2e
[wpt PR 34682] - Add new devicePixel ref test, a=testonly
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 104 Branch
You need to log in before you can comment on or make changes to this bug.