<!DOCTYPE html>
<html>
<body>
<textarea rows="2" style="overflow: hidden;">
this
is
a
textarea
with
overflow
</textarea>
</body>
</html>