<!DOCTYPE html>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<div><br><span id="span" style="padding-left: 30px"> <span>X</span></span></div>
<script>
test(() => {
document.body.offsetTop;
span.style.display = "none";
document.body.offsetTop;
}, "Detaching the white-space text node should not cause a crash.");
</script>