[wpt-sync] Sync PR 64219 - Fix inconsistent subpixel snapping in checkbox painting
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox162 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64219 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64219
Details from upstream follow.
Helmut Januschka <helmut@januschka.com> wrote:
Fix inconsistent subpixel snapping in checkbox painting
Theme parts snapped their paint rect with ToPixelSnappedRect(), which
rounds both edges, so a fractional-size checkbox or radio painted one
pixel larger or smaller depending on where it sat on the pixel grid:
resizing a window made some of a row of equally sized checkboxes
visibly change size while others stayed put. Round the size of those
two parts on its own instead, in rendering coordinates, so the painted
size only depends on the layout size. Whole-pixel controls, i.e. the
common case, are unaffected, and other theme parts keep snapping both
edges so they stay flush with adjacent boxes.Behind the default-on ConsistentFormControlPaintSnapping kill switch.
Bug: 41288048
Change-Id: I47cd6c981397e15964887c69015964357052825e
Include-Ci-Only-Tests: true
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8649429
Auto-Submit: Helmut Januschka \<helmut@januschka.com>
Commit-Queue: Stephen Chenney \<schenney@chromium.org>
Reviewed-by: Stephen Chenney \<schenney@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1726944}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Updated•26 days ago
|
| Assignee | ||
Comment 1•26 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=114223
| Assignee | ||
Comment 2•24 days ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 91 tests
Status Summary
Firefox
OK : 24
PASS: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 636[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 693[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview] 694[Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 1[GitHub] 62[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 68[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
FAIL: 1
Safari
FAIL: 1
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/rendering/widgets/baseline-alignment-and-overflow.tentative.html [wpt.fyi]
- <input type="checkbox" style="overflow: visible; appearance: auto;">:
FAIL - <input type="checkbox" style="overflow: hidden; appearance: auto;">:
FAIL - <input type="checkbox" style="overflow: scroll; appearance: auto;">:
FAIL - <input type="radio" style="overflow: visible; appearance: auto;">:
FAIL - <input type="radio" style="overflow: hidden; appearance: auto;">:
FAIL - <input type="radio" style="overflow: scroll; appearance: auto;">:
FAIL
- <input type="checkbox" style="overflow: visible; appearance: auto;">:
- /html/rendering/widgets/button-layout/display-other.html [wpt.fyi]
- display: run-in:
FAIL - display: table-row-group:
FAIL - display: table-header-group:
FAIL - display: table-footer-group:
FAIL - display: table-row:
FAIL - display: table-cell:
FAIL - display: table-column-group:
FAIL - display: table-column:
FAIL - display: table-caption:
FAIL - display: ruby-base:
FAIL - display: ruby-text:
FAIL - display: ruby-base-container:
FAIL - display: ruby-text-container:
FAIL
- display: run-in:
- /html/rendering/widgets/input-checkbox-switch.tentative.window.html [wpt.fyi]
- appearance:none should work: display gets its initial value:
FAIL
- appearance:none should work: display gets its initial value:
- /html/rendering/widgets/the-select-element/select-as-listbox-default-styles.tentative.html [wpt.fyi]
- <select multiple=""><option>1 - padding-top:
FAIL - <select multiple=""><option>1 - padding-bottom:
FAIL - <select multiple=""><option>1 - border-top-width:
FAIL - <select multiple=""><option>1 - border-right-width:
FAIL - <select multiple=""><option>1 - border-bottom-width:
FAIL - <select multiple=""><option>1 - border-left-width:
FAIL - <select multiple=""><option>1 - border-top-style:
FAIL - <select multiple=""><option>1 - border-right-style:
FAIL - <select multiple=""><option>1 - border-bottom-style:
FAIL - <select multiple=""><option>1 - border-left-style:
FAIL - <select multiple=""><option>1 - border-top-color:
FAIL - <select multiple=""><option>1 - border-right-color:
FAIL - <select multiple=""><option>1 - border-bottom-color:
FAIL - <select multiple=""><option>1 - border-left-color:
FAIL - <select multiple=""><option>1 - white-space:
FAIL - <select multiple=""><option>1 - background-color:
FAIL - <select multiple=""><option>1 - cursor:
FAIL - <select multiple=""><option>1 - font-size:
FAIL - <select multiple=""><option>1 - vertical-align:
FAIL - <select multiple=""><option>1 - user-select:
FAIL - <select multiple=""><option>1 - page-break-inside:
FAIL - <option>1 (in <select multiple="">) - padding-top:
FAIL - <option>1 (in <select multiple="">) - padding-right:
FAIL - <option>1 (in <select multiple="">) - padding-bottom:
FAIL - <option>1 (in <select multiple="">) - padding-left:
FAIL - <option>1 (in <select multiple="">) - white-space:
FAIL - <option>1 (in <select multiple="">) - cursor:
FAIL - <option>1 (in <select multiple="">) - font-size:
FAIL - <option>1 (in <select multiple="">) - user-select:
FAIL - <optgroup label="2"><option>3 (in <select multiple="">) - white-space:
FAIL - <optgroup label="2"><option>3 (in <select multiple="">) - cursor:
FAIL - <optgroup label="2"><option>3 (in <select multiple="">) - font-style:
FAIL - <optgroup label="2"><option>3 (in <select multiple="">) - font-weight:
FAIL - <optgroup label="2"><option>3 (in <select multiple="">) - font-size:
FAIL - <optgroup label="2"><option>3 (in <select multiple="">) - user-select:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - padding-top:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - padding-bottom:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - padding-left:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - white-space:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - cursor:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - font-size:
FAIL - <option>3 (in <select multiple=""><optgroup label="2">) - user-select:
FAIL
- <select multiple=""><option>1 - padding-top:
- /html/rendering/widgets/appearance/appearance-animation-002.html [wpt.fyi]:
FAIL - /html/rendering/widgets/appearance/appearance-transition-003.html [wpt.fyi]:
FAIL - /html/rendering/widgets/input-checkbox-subpixel-paint-size.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL) - /html/rendering/widgets/input-checkbox-switch-indeterminate.tentative.html [wpt.fyi]:
FAIL - /html/rendering/widgets/input-checkbox-switch.tentative.html [wpt.fyi]:
FAIL - /html/rendering/widgets/the-select-element/select-label-appearance.html [wpt.fyi]:
FAIL
Comment 4•18 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9f95bcaad031
https://hg.mozilla.org/mozilla-central/rev/cedbcb354910
Description
•