ladybird/Tests/LibWeb/Layout/input/svg/svg-symbol-without-use.html
Jelle Raaijmakers 39ad7833f0 LibWeb: Do not render SVG <symbol> elements unless part of <use>
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.
2025-11-27 07:55:29 +01:00

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>