[wpt-sync] Sync PR 33086 - ZoomForDSF: Adjust pixel snapped values using integer adjustment.
Categories
(Core :: DOM: CSS Object Model, task, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox100 | --- | fixed |
People
(Reporter: mozilla.org, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 33086 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/33086
Details from upstream follow.
Vladimir Levin <vmpstr@chromium.org> wrote:
ZoomForDSF: Adjust pixel snapped values using integer adjustment.
This patch changes client/offset width and related calculations to
use integer adjustment instead of layout unit adjustment.The difference, roughly speaking, is that we do the rounding in the
layout space instead of the adjusted for dsf space.Starting with a value of 13.3 and dsf=2:
Using layout unit rounding, we have
- The layout value is 26.6, which is pixel snapped to 27.
- Adjusting for dsf yields 13.5, which is rounded to 14.
Using int rounding, we have
- The layout value is 26.6, which is pixel snapped to 27.
- Adjusting adds 0.5 and divides by dsf, which is 13.75
- Truncated to int, we get 13.
Fixed: 1302246
Change-Id: I68aa0af1d30a8704657fcd3099b17d56d423f5c2
Reviewed-on: https://chromium-review.googlesource.com/3507532
WPT-Export-Revision: ee73829e27647caae2589650bd038fbd50dd7fed
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 1•1 year ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=d9ce8cb7d27d7a207a25a5bba20c35efebb8c8f3
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1ed68df86c83 [wpt PR 33086] - ZoomForDSF: Adjust pixel snapped values using integer adjustment., a=testonly
Assignee | ||
Comment 3•1 year ago
|
||
Test result changes from PR not available.
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/45f98e10d089 [wpt PR 33086] - ZoomForDSF: Adjust pixel snapped values using integer adjustment., a=testonly
Comment 5•1 year ago
|
||
bugherder |
Description
•