use href="#example" doesn't duplicate svg definition when in shadow root
Categories
(Core :: SVG, defect)
Tracking
()
People
(Reporter: p-ob, Unassigned)
Details
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:122.0) Gecko/20100101 Firefox/122.0
Steps to reproduce:
- Use Firefox Nightly (122.0a1 (2023-11-28) (64-bit))
- Create a template with an svg defs with id "example"
- In the same template, reference the svg with <use href="#example" />
- Define a custom element, attach a shadow root, and clone template
A reproduction is accessible at the following Codepen: https://codepen.io/p-ob/pen/OJdoXJE. Opening in Chrome, Firefox (stable), Edge will work as expected.
Actual results:
The SVG didn't render
Expected results:
The SVG should render
Comment 1•2 years ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::SVG' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Thanks for filing! This is fixed by bug 1866911, which was indeed a very recent regression.
| Reporter | ||
Comment 4•2 years ago
|
||
Awesome, appreciate the quick response (and sorry for the duplicate). Thank you!
Comment 5•2 years ago
|
||
No worries, your test-case would've made it a lot easier to debug, if only I had seen it a bit earlier! :)
Description
•