<!DOCTYPE html>
<style>
input {
position: absolute;
top: 0;
left: 30px;
height: 50px;
width: 200px;
}
</style>
<div>This change checks that the caret in the >input< below doesn't shift out of it after several layouts.</div>
<div>This test has passed if the caret is centered <b>inside</b> the >input<</div>
<input id="input" type="text" autofocus>
<script>
input.focus();
</script>