Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /svg/types/scripted/svglength-value-access-when-in-detached-document-crash.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>Attempting to resolve a font-relative (em) SVGLength in a detached document does not crash</title>
<iframe></iframe>
<script>
rect.setAttribute("height", "16em");
const iframe = document.querySelector('iframe');
iframe.contentDocument.documentElement.appendChild(rect);
iframe.remove();
rect.height.baseVal.value;
</script>