p:has({text*='Bad word'}

Category: Invalid CSS

Published at:

p:has({text*="Bad word"}) { ... }

The p:has({text*="mytext"}) { ... } selector selects the paragraph containing “Bad word” phrase.