Hacker News new | past | comments | ask | show | jobs | submit login

-webkit-user-select:none on text is a thing I see done on a lot of web pages lately (past couple years), what is the point?



Well, sometimes it is a clean presentation to not be able to select text. You know when you just randomly click and hold the mouse then you end up highlighting half of the interface as well as the text? That is "immersion breaking" for web apps, or whatever the real word is.

In this specific case, it's still broken because the cursor still changes to the selection cursor. Oh well.


they should have done `cursor: default` for the html element selector in the CSS file as well.


Also useful in HTML/CSS/JS-driven desktop UI through Chromium or similar as a way of preventing selection on user interface chassis elements.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

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

Search: