p:has({text*="Bad word"}) { ... }
The p:has({text*="mytext"}) { ... } selector selects the paragraph containing “Bad word” phrase.
Category: Invalid CSS
Published at:
p:has({text*="Bad word"}) { ... }
The p:has({text*="mytext"}) { ... } selector selects the paragraph containing “Bad word” phrase.
More from Invalid CSS: