- From: Daniel Bates via GitHub <sysbot+gh@w3.org>
- Date: Thu, 25 Oct 2018 18:57:11 +0000
- To: public-css-archive@w3.org
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