<!DOCTYPE html> | |
<style> | |
textarea { | |
line-height: 20px; | |
height: 20px; | |
} | |
</style> | |
<p>Test passes if you can see "Pass" in textarea.</p> | |
<textarea placeholder="A long placeholder that gets hidden should make the textarea non-scrollable.">Pass</textarea> | |
<script> | |
var textarea = document.querySelector("textarea"); | |
textarea.scrollTop = textarea.scrollHeight; | |
</script> |