[wpt-sync] Sync PR 62709 - Apply page zoom to the <clipPath> transform for HTML elements
Categories
(Core :: Web Painting, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox158 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 62709 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/62709
Details from upstream follow.
Sampath Samaraweera <sampath.samaraweera@codimite.com> wrote:
Apply page zoom to the <clipPath> transform for HTML elements
For objectBoundingBox units, the zoom reached the clip transform only
as the magnitude of the zoomed reference box, so it scaled the bbox
basis but not thetransformattribute on the \<clipPath> element,
which sits outside it. The clip came out the right size in the wrong
place, off by (zoom - 1) * transform: correct at 100% zoom, diverging
from an equivalent SVG element as the page is zoomed in.Apply the zoom outside the whole transform instead, so that the
transform attribute is scaled along with the bounding box basis, and
pass an unzoomed reference box to CalculateClipTransform() so that the
objectBoundingBox scale does not apply the zoom a second time.Fixed: 558945742
Change-Id: I94ea34572e0e4dba403ab9346b4fee38326d6aaf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8402117
Reviewed-by: Fredrik Söderquist \<fs@opera.com>
Reviewed-by: Philip Rogers \<pdr@chromium.org>
Commit-Queue: Fredrik Söderquist \<fs@opera.com>
Cr-Commit-Position: refs/heads/main@{#1697998}
| Assignee | ||
Updated•2 months ago
|
| Assignee | ||
Comment 1•2 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=92117
| Assignee | ||
Comment 2•2 months ago
|
||
CI Results
Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 244 tests
Status Summary
Firefox
OK : 1[GitHub] 6[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-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 3[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 177[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 389[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]
FAIL: 1[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 2[GitHub] 23[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
OK : 1
FAIL: 2
Safari
OK : 1
FAIL: 2
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-masking/clip-path/clip-path-with-transform-and-zoom-hittest.html [wpt.fyi]
- objectBoundingBox <clipPath> transform is hit-tested with zoom applied:
FAIL(Chrome:FAIL, Safari:FAIL)
- objectBoundingBox <clipPath> transform is hit-tested with zoom applied:
- /css/css-masking/clip-path/animations/clip-path-animation-view-transition-mixed-change.html [wpt.fyi]:
SKIP - /css/css-masking/clip-path/clip-path-borderBox-1e.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-contentBox-1e.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-document-element-will-change.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-document-element.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-element-userSpaceOnUse-003.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-element-userSpaceOnUse-004.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-001.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-002.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-003.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-007.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-008.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-009.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-inline-010.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-marginBox-1c.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-marginBox-1d.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-nested-clippath-zoom.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-paddingBox-1e.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-polygon-014.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-shape-foreignobject-non-zero-xy.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-url-reference-empty-while-loading.tentative.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-url-reference-svg-foreignobject-zoomed.html [wpt.fyi]:
FAIL - /css/css-masking/clip-path/clip-path-with-transform-and-zoom.html [wpt.fyi]:
FAIL(Chrome:FAIL, Safari:FAIL)
Tests Disabled in Gecko Infrastructure
Comment 4•2 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/9e11f2d7e15a
https://hg.mozilla.org/mozilla-central/rev/405e91fa4b98
Description
•