mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-06 08:10:58 +00:00
27 lines
674 B
HTML
27 lines
674 B
HTML
|
|
<!DOCTYPE html>
|
||
|
|
<head>
|
||
|
|
<link rel="match" href="../expected/ol-render-node-append-group-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 div = document.createElement("div");
|
||
|
|
div.innerHTML = "<li>Three</li><li>Four</li>";
|
||
|
|
|
||
|
|
ol.appendChild( div );
|
||
|
|
|
||
|
|
document.documentElement.classList.remove("reftest-wait");
|
||
|
|
});
|
||
|
|
});
|
||
|
|
</script>
|
||
|
|
</body>
|
||
|
|
</html>
|