[w3c/selection-api] No definition of hidden selections (#94)

Chrome sometimes hide selections.

For example:
```
<input id="field" type="text">
<script>
let i = 0;
document.addEventListener("selectionchange", function() {
  i++;
  console.log(`Selection changed: ${i}.`);
});
field.focus(); // Creates the selection.
field.blur();  // Hides the selection.
field.focus(); // Shows the hidden selection.
</script>
```

Hidden selections are not yet defined so I suggest we add something like:

"A hidden selection is non-empty but non-visible selection. The browser _may_ choose to hide selections that users cannot interact with. Hiding is a way for the browser to avoid clearance (when a selection is hid) and recreation (when a selection is repainted)."

-- 
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/94

Received on Tuesday, 5 December 2017 10:14:31 UTC