can you figure out this textarea bug?

1. Textarea is 50px tall.
2. Enter 20 lines.
3. Select all + Delete.
4. Textarea becomes two lines tall.
5. Delete.
6. Textarea becomes 50px tall.