Skip to content

Commit 8737a7e

Browse files
committed
[selectors-4] Disallow nesting :has() inside :has(). #6952
1 parent a6ceab0 commit 8737a7e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

selectors-4/Overview.bs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1194,6 +1194,8 @@ The Relational Pseudo-class: '':has()''
11941194
would match at least one element
11951195
when [=anchor element|anchored against=] this element.
11961196

1197+
'':has()'' pseudo-class cannot be nested; '':has()'' is not valid within '':has()''.
1198+
11971199
11981200
For example, the following selector matches only
11991201
<a> elements that contain an <img> child:

0 commit comments

Comments
 (0)