Skip to content

Truly independent web browser

838 B
Raw Blame
<!DOCTYPE html>
<head>
     <link rel="match" href="../expected/ol-render-node-insert-no-child-ref.html" />
</head>
<html class="reftest-wait">
<body>
<ol id="ol1">
</ol>
<ol reversed id="ol2">
</ol>
<script>
    // Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
    requestAnimationFrame(() => {
      requestAnimationFrame(() => {
        const ol1 = document.getElementById("ol1");
        const ol2 = document.getElementById("ol2");

        const one1 = document.createElement("li");
        one1.innerHTML = "One";

        const one2 = document.createElement("li");
        one2.innerHTML = "One";

        ol1.insertBefore( one1, null );
        ol2.insertBefore( one2, null );

        document.documentElement.classList.remove("reftest-wait");
      });
    });
</script>
</body>
</html>