Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-position/crashtests/dynamic-change-inset-svg-text-subtree.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<meta name="assert" content="Changing an inset on a relatively positioned frame in an SVG text subtree, where 'position' does not apply, should not crash.">
<text y="20">a<tspan id="t" style="position: relative; left: 0">b</tspan>c</text>
</svg>
<script>
const t = document.getElementById("t");
document.documentElement.offsetHeight;
t.style.left = "10px";
document.documentElement.offsetHeight;
t.textContent = "bb";
document.documentElement.offsetHeight;
</script>