From 31bd548169db92081bed2d2fa07a56dbd137e433 Mon Sep 17 00:00:00 2001 From: stonecrusher Date: Wed, 13 Nov 2019 03:19:06 +0100 Subject: [PATCH] clarify :has-text() also searches child elements --- Procedural-cosmetic-filters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Procedural-cosmetic-filters.md b/Procedural-cosmetic-filters.md index 42f8609..ddeac7a 100644 --- a/Procedural-cosmetic-filters.md +++ b/Procedural-cosmetic-filters.md @@ -40,7 +40,7 @@ The `:has(arg)` operator is actually a planned pseudo-class in CSS4, but as of w ### `subject:has-text(needle)` -- Description: Select element _subject_ if and only if the text _needle_ is found inside the element _subject_. +- Description: Select element _subject_ if the text _needle_ is found inside the element _subject_ or its children. - Chainable: Yes. - _subject_: Can be a plain CSS selector, or a procedural cosmetic filter. - _needle_: The literal text which must be found, or a literal regular expression. If using a literal regular expression, you can optionally use the `i` and/or `m` flags (version 1.15).