Newer
Older
minerva / Tests / LibWeb / Layout / input / input-text-node-invalidation-on-value-change.html
@minerva minerva on 13 Jul 374 bytes Initial commit
<!DOCTYPE html><html><head><style>
* {
    font: 20px 'MinervaSans';
}
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>