Libweb: Invalidate layout for the value-attribute of li-elements

This commit is contained in:
InvalidUsernameException 2025-05-10 19:08:25 +02:00 committed by Andreas Kling
commit 029bcf13fd
Notes: github-actions[bot] 2025-05-10 23:15:26 +00:00
6 changed files with 38 additions and 4 deletions

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<ol>
<li value="42">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/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>