Re: [csswg-drafts] [css-selectors-4] ::text / ::text-node pseudoelement

There's two ways to go about this. One is to style the [text node](https://drafts.csswg.org/css-display/#css-text-node) itself - only a subset of the CSS properties would apply, those that work on text.  (More or less just the properties that are inherited, but there are some inherited properties that wouldn't apply.)  We'd have to define the precedence of this vs ::first-line and ::first-letter.

The second is to create an anonymous box around the text node and style that. In this case all of CSS applies.  There is a minor problem here, tho - one of the use-cases for this is to [solve issue 2 in the Scoping spec](https://drafts.csswg.org/css-scoping/#issue-1f735d69), and it's not totally clear where in the flat tree the anonymous box would be.

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

Received on Friday, 19 January 2018 19:26:41 UTC