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

[csswg-drafts] [css-pseudo-4]: How should a selected spelling error be painted?

From: Daniel Bates via GitHub <sysbot+gh@w3.org>
Date: Sun, 01 Jul 2018 21:34:55 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-337324148-1530480894-sysbot+gh@w3.org>
dbates-wk has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-pseudo-4]: How should a selected spelling error be painted? ==
Looking to understand <https://drafts.csswg.org/css-pseudo/#highlight-painting>. How should the following markup be painted when you select the entire contents of `<p>`:

<!DOCYPE html>
body {
    text-decoration: underline;
    background-color: magenta;
p {
    color: black;
    background-color: white;
p::spelling-error {
    color: red;
p::selection {
    background-color: lightblue;
<p>Select this entire sentence with the missspelled word.</p>

Should it paint as:

<img width="361" alt="replaced" src="https://user-images.githubusercontent.com/20798617/42138977-d5ba8c8c-7d3a-11e8-9de9-33f0d53264e4.png">


<img width="359" alt="pseudo-elements-inherit" src="https://user-images.githubusercontent.com/20798617/42138992-0f102924-7d3b-11e8-8b07-fefc37d3fb30.png">

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2850 using your GitHub account
Received on Sunday, 1 July 2018 21:34:58 UTC

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