Bug 1860609 [wpt PR 42687] - Fix WPT css/css-masking/mask-svg-content/mask-with-filte...
commit4778fa1f49e8d603d2036c13bd959adf60e4344b
authorFredrik Söderquist <fs@opera.com>
Wed, 1 Nov 2023 04:07:02 +0000 (1 04:07 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Mon, 6 Nov 2023 09:05:50 +0000 (6 09:05 +0000)
tree2b4f98f3a3aa9eaf214886210f2851ed4da16c9b
parent1390e68adfa0fcd1b2121c6ab49908cd9cef09c3
Bug 1860609 [wpt PR 42687] - Fix WPT css/css-masking/mask-svg-content/mask-with-filter.svg, a=testonly

Automatic update from web-platform-tests
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/c/chromium/src/+/4966743
Auto-Submit: Fredrik Söderquist <fs@opera.com>
Commit-Queue: Philip Rogers <pdr@chromium.org>
Reviewed-by: Philip Rogers <pdr@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1213648}

--

wpt-commits: 8d44eab7eee9ba9a8196fa7642f5e38bf750623d
wpt-pr: 42687
testing/web-platform/tests/css/css-masking/mask-svg-content/mask-with-filter-clipped-to-region.svg [copied from testing/web-platform/tests/css/css-masking/mask-svg-content/mask-with-filter.svg with 59% similarity]
testing/web-platform/tests/css/css-masking/mask-svg-content/mask-with-filter.svg