blob: 3d82c6d4b182d5c12a0feab5b5cbd5009e1482fb [file] [log] [blame]
<!DOCTYPE html>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<body>
<script>
test(() => {
const img = document.createElement("img");
img.setAttribute("alt", "PASS if no crash.");
document.body.appendChild(img);
const span = document.createElement("span");
img.appendChild(span);
document.body.offsetTop;
}, "Removing an img child from the flat tree because alt rendering is added should not crash.");
</script>