w3c / selection-api

Selection API
http://w3c.github.io/selection-api/
Other
47 stars 30 forks source link

user-select: none and selectionchange event #74

Open caub opened 8 years ago

caub commented 8 years ago

Related with https://bugs.chromium.org/p/chromium/issues/detail?id=621543 and https://github.com/w3c/csswg-drafts/issues/319, the standard doesn't seem to be clear for selectionchange and for actual selection change on interactions on elements with user-events: none

rniwa commented 8 years ago

selectionchange event should fire whenever selection DID change. This is irrespective of whether the user had tried to select content or whether user-select: none happened to be used.

caub commented 8 years ago

I interpret user-select: none as "can't select me and don't touch to the current selection". Firefox follows that idea, but not others

rniwa commented 8 years ago

I think this probably needs to be implementation dependent because in general, different browsers and platforms have different behaviors for when selection can be changed.