W3C home > Mailing lists > Public > public-css-archive@w3.org > December 2018

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

From: Masataka Yakura via GitHub <sysbot+gh@w3.org>
Date: Tue, 11 Dec 2018 08:58:45 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-389656615-1544518723-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:40 UTC