[w3c/selection-api] Define the order between select and selectionchange (#129)

There is no defined order between them.

* Mouse drag: selectionchange first and then select.
* Shift+arrow keys on keyboard: select first and then selectionchange.
* Selection setter APIs e.g. selectionStart: select first on Gecko, no consistency on Blink (it's racy).

The mouse drag case fires multiple selectionchanges and then a select event at mouseup. I think selectionchange events should be fired before select events to keep it that way.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/selection-api/issues/129

Received on Friday, 11 December 2020 15:20:00 UTC