ladybird/Tests/LibWeb/Screenshot/input/ol-render-node-append-reversed.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

26 lines
654 B
HTML

<!DOCTYPE html>
<head>
<link rel="match" href="../expected/ol-render-node-append-reversed-ref.html" />
</head>
<html class="reftest-wait">
<body>
<ol reversed id="ol">
<li>Three</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 one = document.createElement("li");
one.innerHTML = "One";
ol.appendChild( one );
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
</body>
</html>