We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdda267 commit 1e9159eCopy full SHA for 1e9159e
1 file changed
selectors-4/Overview.bs
@@ -1269,6 +1269,12 @@ The Relational Pseudo-class: '':has()''</h3>
1269
many of them exist conditionally, based on the styling of their ancestors,
1270
so allowing these to be queried by '':has()'' would introduce cycles.
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
+
1278
<div class='example'>
1279
For example, the following selector matches only
1280
<code><a></code> elements that contain an <code><img></code> child:
0 commit comments