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

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