[csswg-drafts] [css-pseudo-4] clarify ::selection applies to programatically created selection (#3425)

myakura has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo-4] clarify ::selection applies to programatically created selection ==
In https://drafts.csswg.org/css-pseudo-4/#selectordef-selection the spec says:

> The ::selection and ::inactive-selection pseudo-elements represent the portion of a document that has been highlighted by the user.

However, it is possible that web apps can create selections with DOM Ranges and Selection APIs. And `::selection` applies to those programatically created selections. Perhaps spec should take such non-user initiated selection into account?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3425 using your GitHub account

Received on Tuesday, 11 December 2018 08:58:46 UTC