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

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

From: Nadya678 via GitHub <sysbot+gh@w3.org>
Date: Mon, 22 Jan 2018 12:21:26 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-359408159-1516623685-sysbot+gh@w3.org>
> It's unclear about what most of the CSS properties would mean on a text-node, though, right? Specially non-inheriting ones.

Works it like ::after and ::before. 

```
::text
{
   display:block;
   border:2px solid red;
}
```

will be shown identically like:

```
::before
{
   content:"the node text"; 
   display:block;
   border:2px solid red;
}
```

I think it is the easiest solution. 

-- 
GitHub Notification of comment by Nadya678
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2208#issuecomment-359408159 using your GitHub account
Received on Monday, 22 January 2018 12:21:32 UTC

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