logoalt Hacker News

rikschenninktoday at 6:03 AM1 replyview on HN

I looked at the screenshot and for the rest of the article wondered if it would be as simple as `overflow-x: hidden`.

And to my surprise it was.

This would’ve take a frontend dev 10 seconds to deduce and another 10 seconds to confirm.


Replies

simonwtoday at 6:09 AM

The thing that puzzles me is that I would expect overflow-x: hidden to result in text typed into that textarea being wider than the page and being invisibly truncated on the right hand side.

But that's not what happens. And in fact, when you start typing in the textarea the horizontal scrollbar vanishes - it's only there when the textarea is empty.

Am I misunderstanding anything here? Seems like it's some weird Safari bug, since Firefox and Chrome don't have the problem.

show 1 reply