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]( 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](, 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 using your GitHub account

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