ladybird/Tests/LibWeb/Layout/input/input-text-node-invalidation-on-value-change.html
Andreas Kling 1c47695bae LibWeb: Invalidate layout-transformed text on DOM text node change
This fixes an issue where programmatically changing the value of an
input element wasn't reflected visually.
2023-08-16 12:16:05 +02:00

9 lines
254 B
HTML

<input id="foo">
<script>
let foo = document.getElementById("foo");
foo.value = "FAIL";
document.body.offsetWidth; // Force a layout
document.addEventListener("DOMContentLoaded", function() {
foo.value = "PASS";
});
</script>