Re: [csswg-drafts] [css-pseudo] ::selection style propagation section doesn't reflect reality in any way.

I just want to clarify that "RESOLVED: Switch to using inheritance instead of cascade" means that ::selection will inherit from ::first-line (if there is one) such that selecting all of the following text in the page whose markup is:

```
<style>
#test {
    color: black;
}
#test::first-line {
    color: red;
}
#test::selection {
    background-color: blue;
}
</style>
<p id="test">First line of text.<br>Second line of text.</p>
```
will render equivalent to the page whose markup is:

```
<style>
#test {
    color: black;
    background-color: blue;
}
</style>
<p id="test"><span style="color: red">First line of text.</span><br>Second line of text.</p>
```?

The first line has red text on a blue background and the second line has black text on a blue background.



-- 
GitHub Notification of comment by dbates-wk
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2474#issuecomment-433166760 using your GitHub account

Received on Thursday, 25 October 2018 18:57:12 UTC