<!DOCTYPE html> | |
<p>select() should not scroll containers.</p> | |
<div style="overflow:scroll; width:100px; height:24px;"> | |
<div>line1</div> | |
<input value="A quick brown fox jumps over the lazy dog. " size=20> | |
</div> | |
<script> | |
document.querySelector('input').select(); | |
</script> |