LibWeb: Invalidate layout for ol-attributes that affect it

This commit is contained in:
InvalidUsernameException 2025-05-10 19:08:24 +02:00 committed by Andreas Kling
commit 370098514a
Notes: github-actions[bot] 2025-05-10 23:15:32 +00:00
9 changed files with 78 additions and 0 deletions

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<ol reversed>
<li>Item a</li>
<li>Item b</li>
</ol>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<ol start="42">
<li>Item a</li>
<li>Item b</li>
</ol>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<ol type="I">
<li>Item a</li>
<li>Item b</li>
</ol>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../expected/ol-change-reversed-attribute-ref.html" />
<ol id="list">
<li>Item a</li>
<li>Item b</li>
</ol>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById("list").reversed = true;
document.documentElement.className = '';
});
});
</script>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../expected/ol-change-start-attribute-ref.html" />
<ol id="list">
<li>Item a</li>
<li>Item b</li>
</ol>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById("list").start = 42;
document.documentElement.className = '';
});
});
</script>
</html>

View file

@ -0,0 +1,17 @@
<!DOCTYPE html>
<html class="reftest-wait">
<link rel="match" href="../expected/ol-change-type-attribute-ref.html" />
<ol id="list">
<li>Item a</li>
<li>Item b</li>
</ol>
<script>
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
requestAnimationFrame(() => {
requestAnimationFrame(() => {
document.getElementById("list").type = 'I';
document.documentElement.className = '';
});
});
</script>
</html>