W3C home > Mailing lists > Public > public-css-archive@w3.org > May 2017

Re: [csswg-drafts] [css-ui-4] Make selection change behavior configurable

From: Florian Rivoal via GitHub <sysbot+gh@w3.org>
Date: Wed, 03 May 2017 03:09:20 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-298813949-1493780959-sysbot+gh@w3.org>
In typical native apps, clicking on UI areas does not deselect any previously selected text. I don't quite see why we need a different behavior here.

Why apply `user-select:none` to areas that have nothing selectable anyway, especially if you're still hoping that a user interacting with that area would affect the selection?

Wouldn't your problem be solved if you applied `user-select:none` less aggressively, and let the whole content area be selectable (instead of just the text parts in the content area), keeping `user-select:none` for tool-bars and other UI centric components?

Besides making deselecting easier, this would have additional benefits. In the example you sent, if an image fails to load and the alt text is shown instead, it would not be selectable. What is to be gained by preventing users from selecting that?

-- 
GitHub Notification of comment by frivoal
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1317#issuecomment-298813949 using your GitHub account
Received on Wednesday, 3 May 2017 03:09:27 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 10:12:53 UTC