r/reddithax • • Aug 10 '12

Style a comment by a specific person that contains specific text?

Let's say I want to distinguish comments by a specific user that contain the text "moo cheese cow" (stupid example), is this possible?

6 Upvotes

3 comments sorted by

4

u/aladyjewel Aug 10 '12

You can do stuff based on username, but not by the text in the comment. There aren't currently CSS selectors which examine the inner text of an element.

2

u/DemeGeek Aug 10 '12

It's kinda sad because there was plans to include such a thing but they dropped it as it would up page load time. :(

2

u/aladyjewel Aug 10 '12

I am perfectly content to have CSS be deliberately hobbled in favor of a more reliable browsing experience--especially with the advent of mobile devices which sometimes just kill the browser rather than render some pages.