mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
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:
committed by
Sam Atkins
parent
20546725be
commit
51b4b4a270
Notes:
github-actions[bot]
2025-06-16 11:46:13 +00:00
Author: https://github.com/manuel-za Commit: https://github.com/LadybirdBrowser/ladybird/commit/51b4b4a2707 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4442 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/InvalidUsernameException Reviewed-by: https://github.com/R-Goc Reviewed-by: https://github.com/skyz1 ✅
@@ -0,0 +1,26 @@
|
||||
<!DOCTYPE html>
|
||||
<head>
|
||||
<link rel="match" href="../expected/ol-render-node-append-group-reversed-ref.html" />
|
||||
</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>
|
||||
Reference in New Issue
Block a user