mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02: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.
8 lines
203 B
HTML
8 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>
|