Closed Bug 2083860 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63867 - WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327381

Categories

(Core :: Web Painting, task, P4)

task

Tracking

()

RESOLVED FIXED
162 Branch
Tracking Status
firefox162 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Karl Dubost <karlcow@apple.com> wrote:

WebKit export of https://bugs.webkit.org/show_bug.cgi?id=327381

WebKit export from bug: Safari fails to repaint an inline SVG CSS mask after child geometry mutation

<pre>
Changing the children of an SVG <mask> used by CSS mask-image does not repaint the masked element

An HTML element with mask-image: url(#m) keeps showing the old mask
after a script changes the children of <mask id="m">. Resizing the
window repaints it with the new mask. Firefox and Chrome update right
away.

CSS Masking allows a mask-image URL to point at a mask element:

 A URL reference to a mask element (for example
 url(commonmasks.svg#mask)) or to a CSS image.

<a href="https://drafts.csswg.org/css-masking-1/#valdef-mask-image-url">https://drafts.csswg.org/css-masking-1/#valdef-mask-image-url</a>

An element that uses an SVG resource through CSS is repainted when the
resource changes, but only for the resources listed by
ReferencedSVGResources::referencedSVGResourceIDs(). clip-path and filter
have been listed for both SVG engines since <a href="https://commits.webkit.org/241274@main">241274@main</a>
(<a href="https://webkit.org/b/204204).">https://webkit.org/b/204204).</a> mask was listed only when the layer-based
SVG engine is enabled. It is off by default, so the masked element was
never repainted.

List mask for both engines, by moving the layer-based engine check below
it. The legacy engine already notifies these listeners when a mask child
changes, and the masked element redraws the mask from its children each
time it paints.

WebKit-Bug: <a href="https://bugs.webkit.org/show_bug.cgi?id=327381">https://bugs.webkit.org/show_bug.cgi?id=327381</a>
WebKit-Canonical-Link: <a href="https://commits.webkit.org/324026@main">https://commits.webkit.org/324026@main</a>
</pre>

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 120 tests

Status Summary

Firefox

PASS: 1[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, GitHub] 116[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: 4

Chrome

PASS: 1

Safari

FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

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