ladybird/Tests/LibWeb/Ref/input/ol-render-node-insert-no-child.html
Manuel Zahariev 51b4b4a270 LibWeb: Tests for recalculating ordinals after list manipulation
FIXME: Rendering modifications to a list is sometimes not pixel-perfect
       vs. reference (likely a bug). After this is fixed, screenshot
       tests from this commit will likely fail + can be moved to
       ref tests.
2025-06-16 12:44:58 +01:00

32 lines
838 B
HTML

<!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>