File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1269,6 +1269,12 @@ The Relational Pseudo-class: '':has()''</h3>
1269
1269
many of them exist conditionally, based on the styling of their ancestors,
1270
1270
so allowing these to be queried by '':has()'' would introduce cycles.
1271
1271
1272
+ Note: Since '':has()'' takes a <<relative-selector-list>> ,
1273
+ its arguments are <em> inherently</em> [=complex selectors=]
1274
+ (because they start, perhaps implicitly, with a combinator).
1275
+ This means '':has()'' cannot be used in contexts that don't allow complex selectors;
1276
+ its arguments will be guaranteed to be invalid.
1277
+
1272
1278
<div class='example'>
1273
1279
For example, the following selector matches only
1274
1280
<code> <a></code> elements that contain an <code> <img></code> child:
You can’t perform that action at this time.
0 commit comments