ladybird/Tests/LibWeb/Ref/input/ol-render-node-append.html

27 lines
651 B
HTML
Raw Normal View History

<!DOCTYPE html>
<head>
<link rel="match" href="../expected/ol-render-node-append-ref.html" />
</head>
<html class="reftest-wait">
<body>
<ol id="ol">
<li>One</li>
<li>Two</li>
</ol>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
const ol = document.getElementById("ol");
const three = document.createElement("li");
three.innerHTML = "Three";
ol.appendChild( three );
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
</body>
</html>