W3C home > Mailing lists > Public > public-css-archive@w3.org > January 2018

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Fri, 19 Jan 2018 19:26:39 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-359064997-1516389998-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:23 UTC