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.
This commit is contained in:
Manuel Zahariev 2025-05-12 10:48:45 -07:00 committed by Sam Atkins
commit 51b4b4a270
Notes: github-actions[bot] 2025-06-16 11:46:13 +00:00
45 changed files with 1068 additions and 0 deletions

View file

@ -0,0 +1,32 @@
<!DOCTYPE html>
<head>
<link rel="match" href="../expected/ol-render-node-remove-ref.html" />
</head>
<html class="reftest-wait">
<body>
<ol id="ol1">
<li>One</li>
<li id="x1">X1</li>
<li>Two</li>
</ol>
<ol reversed id="ol2">
<li>Two</li>
<li id="x2">X2</li>
<li>One</li>
</ol>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
const x1 = document.getElementById("x1");
x1.remove();
const x2 = document.getElementById("x2");
x2.remove();
document.documentElement.classList.remove("reftest-wait");
});
});
</script>
</body>
</html>