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

[csswg-drafts] [css-pseudo-4] ::selection vs ::inactive-selection (#4579)

From: fantasai via GitHub <sysbot+gh@w3.org>
Date: Tue, 10 Dec 2019 23:28:30 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-536053059-1576020509-sysbot+gh@w3.org>
fantasai has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo-4] ::selection vs ::inactive-selection ==
The spec seems to imply that ::selection and ::inactive-selection are mutually exclusive, when actually ::selection applies to inactive selections currently. The spec should be updated to make their interaction compatible with this behavior.

* ::selection and ::inactive-selection apply to the same highlight pseudo-element, possibly with ::inactive-selection at a higher specificity
* ::selection and ::inactive-selection are separate highlight pseudo-elements that both apply to the range of an inactive selection, with ::inactive-selection at a higher level than ::selection (in the same way ::spelling-error and ::grammar-error layer when applied to the same text)

Interested in feedback from any implementers, on what makes sense implementation-wise.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4579 using your GitHub account
Received on Tuesday, 10 December 2019 23:28:32 UTC

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