<!DOCTYPE html> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
</style> | |
<p> https://bugs.webkit.org/show_bug.cgi?id=109020: An input element that grows to 100% width will create scrollbars, and these should go away when it loses focus. </p> | |
<input id="input" placeholder="placeholder"> | |
<input id="input2"> | |
<script> | |
document.getElementById('input2').focus(); | |
</script> |