WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
320441
url(#foo) in external SVG via <use> incorrectly looks for referenced entity in outer document
https://bugs.webkit.org/show_bug.cgi?id=320441
Summary
url(#foo) in external SVG via <use> incorrectly looks for referenced entity i...
Sérgio Gomes
Reported
2026-07-28 02:13:55 PDT
If a document loads an external SVG file via SVG `<use>`, then any `url(#foo)` usage in that external SVG file fails, because it is apparently looking for `foo` in the importing document instead of the external SVG file. To illustrate this, here is a small test page:
https://sgomes.github.io/external-svg-with-filter/
It includes both a "correct usage" test, where both the filter and the element that makes use of it are defined inside the external SVG; as well as an "incorrect usage" test that matches WebKit's apparent expectation, where the filter is instead defined in the importing document. Blink and Gecko pass the "correct usage" test by rendering the shadow, and pass the "incorrect usage" test by rendering an entirely white image. Webkit fails the "correct usage" test by rendering an entirely white image, and fails the "incorrect usage example" by rendering the shadow. This problem had initially been reported as a comment in 65344 (
https://bugs.webkit.org/show_bug.cgi?id=65344#c8
) and was moved to a new issue as requested by
taher_ali@apple.com
.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2026-08-04 02:14:12 PDT
<
rdar://problem/184004736
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug