Closed Bug 1860609 Opened 1 year ago Closed 1 year ago

[wpt-sync] Sync PR 42687 - Fix WPT css/css-masking/mask-svg-content/mask-with-filter.svg

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 42687 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/42687
Details from upstream follow.

Fredrik Söderquist <fs@opera.com> wrote:

Fix WPT css/css-masking/mask-svg-content/mask-with-filter.svg

The filter's region is relative to the object bounding box of the \<rect>
in the mask. The object bounding box of that \<rect> is \<49,49 2x2>. Thus
the results of the filter will be clipped to \<48.8,48.8 2.4x2.4> since
the default filter region is the object bounding box expanded by 10%.

Since the test wants the stroked shape to be filtered in its entirety,
switch the filter units to "userSpaceOnUse" to avoid the clipping.

Add a new test that tests that the clipping from the filter region is
applied.

Fixed: 1475379
Change-Id: Ib62674a32de3ab457e14a16095103d0bbd4b3df4

Reviewed-on: https://chromium-review.googlesource.com/4966743
WPT-Export-Revision: b73405075592cb89a597f2531bafe90c13c44c50

Component: web-platform-tests → Web Painting
Product: Testing → Core
Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/62c61deadba5 [wpt PR 42687] - Fix WPT css/css-masking/mask-svg-content/mask-with-filter.svg, a=testonly https://hg.mozilla.org/integration/autoland/rev/68ea4910c7ad [wpt PR 42687] - Update wpt metadata, a=testonly
Test result changes from PR not available.
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 121 Branch
You need to log in before you can comment on or make changes to this bug.