<!DOCTYPE html>
<body>
<input value=foo style="height:0.5em;">
<input placeholder=foo style="height:0.5em;">
<script>
document.body.offsetHeight;
document.getElementsByTagName('input')[0].style.height = 'initial';
document.getElementsByTagName('input')[1].style.height = 'initial';
</script>
</body>
