Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Text-Box-Trim

I’m surprised ‘text-box-trim’ wasn’t mentioned.

It’s a CSS attribute that solves this on the web.

https://caniuse.com/css-text-box-trim

If only browsers would support it.

Until then, here’s a JS alternative.

https://seek-oss.github.io/capsize/




Hardly worth mentioning a feature supported by...nothing


That's not true, it's obviously relevant to the article, plus, if it gets mentioned enough it's more likely to get support.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: