3 ms·
The spec suggests that it would more be to avoid selecting things that are not part of the text flow of the document, which would be a usability win. i.e. capti
by maaarghk 12y ago
The spec suggests that it would more be to avoid selecting things that are not part of the text flow of the document, which would be a usability win. i.e. captions that are in the middle of the flow, etc.
But you're right to point out it could be used by the unscrupulous sort of people who also like to disable right click, and that would indeed by highly annoying.
- frivoal 12y agoIf you have suggestions on how to mitigate that (making the feature less useful as a copy protection without affecting (too much) the intended use, I'm happy to update the spec.
- encoderer 12y agoIs a modifier key possible? E.g. holding down shift allows you to select all text? Or a context-menu option on the unselectable text to copy the whole block? Excuse my naiveté.
- frivoal 12y agoCSS is device neutral and works on things that don't have shift keys or context menus, so we can't specify the mechanism. However, we can make it allowed, or even recommended for browsers to provide a way to select anyway, even if the spec leaves it up to the browser what UI it wants to use for that.
- frivoal 12y agoDone: https://twitter.com/CSScommits/status/587951029661990912 https://twitter.com/CSScommits/status/587951029661990912