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

> 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