Truly independent web browser
<!DOCTYPE html>
<head>
</head>
<html class="reftest-wait">
<body>
<ol reversed id="ol">
<li>Four</li>
<li>Three</li>
</ol>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
const ol = document.getElementById("ol");
const div = document.createElement("div");
div.innerHTML = "<li>Two</li><li>One</li>";
ol.appendChild( div );
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
</body>
</html>