1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-17 17:15:08 +00:00
serenity/Tests/LibWeb/Layout/input/input-text-node-invalidation-on-value-change.html
2023-12-09 21:49:38 +01:00

16 lines
375 B
HTML

<!DOCTYPE html><html><head><style>
* {
font: 20px 'SerenitySans';
}
input {
width: 200px;
}
</style></head><body><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>