ladybird/Tests/LibWeb/Layout/input/layout-tree-update/simple-update-inside-svg-subtree.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

7 lines
203 B
HTML

<!DOCTYPE html>
<body><svg><symbol id="a"><set id="set"></set></symbol><use href="#a"></use></body>
<script>
document.body.offsetWidth;
set.prepend("x");
document.body.offsetWidth;
</script>