mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 06:09:08 +00:00
Libweb: Invalidate layout for the value
-attribute of li
-elements
This commit is contained in:
parent
370098514a
commit
029bcf13fd
Notes:
github-actions[bot]
2025-05-10 23:15:26 +00:00
Author: https://github.com/InvalidUsernameException
Commit: 029bcf13fd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4686
6 changed files with 38 additions and 4 deletions
|
@ -0,0 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<ol>
|
||||
<li value="42">Item a</li>
|
||||
<li>Item b</li>
|
||||
</ol>
|
17
Tests/LibWeb/Ref/input/li-change-value-attribute.html
Normal file
17
Tests/LibWeb/Ref/input/li-change-value-attribute.html
Normal file
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html class="reftest-wait">
|
||||
<link rel="match" href="../expected/li-change-value-attribute-ref.html" />
|
||||
<ol>
|
||||
<li id="first">Item a</li>
|
||||
<li>Item b</li>
|
||||
</ol>
|
||||
<script>
|
||||
// Two nested requestAnimationFrame() calls to force code execution _after_ initial paint
|
||||
requestAnimationFrame(() => {
|
||||
requestAnimationFrame(() => {
|
||||
document.getElementById("first").value = 42;
|
||||
document.documentElement.className = '';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue