mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
We were always rendering <symbol> SVG elements, but we should only render them if they are a child of a <use>'s shadow root. This caused practically all instances of <symbol> to be drawn at least one time too many.
6 lines
174 B
HTML
6 lines
174 B
HTML
<!DOCTYPE html>
|
|
<svg xmlns="http://www.w3.org/2000/svg">
|
|
<symbol viewBox="0 0 16 16">
|
|
<rect x="1" y="1" width="14" height="14" fill="red" />
|
|
</symbol>
|
|
</svg>
|