mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
LibWeb: Invalidate layout for ol
-attributes that affect it
This commit is contained in:
parent
263b125782
commit
370098514a
Notes:
github-actions[bot]
2025-05-10 23:15:32 +00:00
Author: https://github.com/InvalidUsernameException
Commit: 370098514a
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4686
9 changed files with 78 additions and 0 deletions
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<ol reversed>
|
||||
<li>Item a</li>
|
||||
<li>Item b</li>
|
||||
</ol>
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<ol start="42">
|
||||
<li>Item a</li>
|
||||
<li>Item b</li>
|
||||
</ol>
|
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<ol type="I">
|
||||
<li>Item a</li>
|
||||
<li>Item b</li>
|
||||
</ol>
|
17
Tests/LibWeb/Ref/input/ol-change-reversed-attribute.html
Normal file
17
Tests/LibWeb/Ref/input/ol-change-reversed-attribute.html
Normal 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>
|
17
Tests/LibWeb/Ref/input/ol-change-start-attribute.html
Normal file
17
Tests/LibWeb/Ref/input/ol-change-start-attribute.html
Normal 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>
|
17
Tests/LibWeb/Ref/input/ol-change-type-attribute.html
Normal file
17
Tests/LibWeb/Ref/input/ol-change-type-attribute.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue