wpt / svg / types / scripted / svglength-value-access-when-in-detached-document-crash.html

Status: PASS | Duration: 7ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi

/svg/types/scripted/svglength-value-access-when-in-detached-document-crash.html

<!doctype html>
<title>Attempting to resolve a font-relative (em) SVGLength in a detached document does not crash</title>
<iframe></iframe>
<script>
  const rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
  rect.setAttribute("height", "16em");
  const iframe = document.querySelector('iframe');
  iframe.contentDocument.documentElement.appendChild(rect);
  iframe.remove();
  rect.height.baseVal.value;
</script>