Can I match a :contains selector on generated content?
Forum › How do I...?
:contains() on generated content?
No, it is only used to match the original document content. Otherwise this could be used to create infinite loops:
span:contains('foo') { content: 'bar' }
span:contains('bar') { content: 'foo' }