Skip to content

Commit 76810b3

Browse files
authored
[selectors-4] Disallow nesting :has() inside :has(). w3c#6952 (w3c#7344)
1 parent cddc1e5 commit 76810b3

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()''</h3>
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
<div class='example'>
11981200
For example, the following selector matches only
11991201
<code>&lt;a></code> elements that contain an <code>&lt;img></code> child:

0 commit comments

Comments
 (0)