LibWeb: SVG url()
references don't work when SVG is inside shadow DOM
#3458
Labels
bug
Something isn't working
has repro
We have a way to reproduce this bug.
painting
Related to painting subsystem
reduction of web content
Issue has a simplified reduction based on real-world web content.
svg
Summary
SVG elements using
url()
references (like gradients or masks) fail to work properly when SVG is moved into a Shadow DOM.Reduced from icones.js.org. Specifically https://icones.js.org/collection/logos, but it affects other SVGs as well.
Operating system
Linux
Steps to reproduce
N/A
Expected behavior
SVG should look the same both inside and outside shadow DOM.
Actual behavior
When SVG is moved into shadow DOM, the
url(#fill)
reference stops working and rectangle doesn't receive the gradient fill.Same issue occurs with other URL-referenced elements like masks.
URL for a reduced test case
N/A
HTML/SVG/etc. source for a reduced test case
Log output and (if possible) backtrace
Screenshots or screen recordings
Build flags or config settings
No response
Contribute a patch?
The text was updated successfully, but these errors were encountered: