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.
7 lines
203 B
HTML
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>
|