rubo77 rubo77 - 4 months ago 12
CSS Question

CSS style for text starting with "> "

I am creating a userstyle for mailman/pipermail archives for the Stylish Addon for Firefox and Chrome.

Now the only thing left would be to give the quotes a unique style so I would have to address only text that is preceeded by

>
and create a CSS for that.

How can I address those text parts with CSS only?

Answer

Looks like they were thinking about such a selector for the CSS3 spec but it didn't make the cut.

:contains() CSS3 selector: https://www.w3.org/TR/2001/CR-css3-selectors-20011113/#content-selectors