<!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>