Closed Bug 2072288 Opened 2 months ago Closed 2 months ago

[wpt-sync] Sync PR 62709 - Apply page zoom to the <clipPath> transform for HTML elements

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
158 Branch
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 the transform attribute 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}

Component: web-platform-tests → Web Painting
Product: Testing → Core

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

Tests Disabled in Gecko Infrastructure

Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 158 Branch
You need to log in before you can comment on or make changes to this bug.