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>
12691269 many of them exist conditionally, based on the styling of their ancestors,
12701270 so allowing these to be queried by '':has()'' would introduce cycles.
12711271
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+
12721278 <div class='example'>
12731279 For example, the following selector matches only
12741280 <code> <a></code> elements that contain an <code> <img></code> child:
You can’t perform that action at this time.
0 commit comments