File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -2318,7 +2318,7 @@ User Action Pseudo-classes</h2>
2318
2318
for the selection of an element the user is acting on.
2319
2319
(In non-interactive user agents, these pseudo-classes are valid, but never match any element.)
2320
2320
2321
- These pseudo-classes are not mutually exclusive.
2321
+ The [=user action pseudo-classes=] are not mutually exclusive.
2322
2322
An element can match several such pseudo-classes at the same time.
2323
2323
2324
2324
<div class="example">
@@ -2333,6 +2333,16 @@ User Action Pseudo-classes</h2>
2333
2333
</pre>
2334
2334
</div>
2335
2335
2336
+ Some [=user action pseudo-classes=] ,
2337
+ in addition to matching on the particular element with the property in question,
2338
+ match on that element's ancestors as well:
2339
+ '':hover'' , '':active'' , '':focus-within'' .
2340
+ Specifically, if these match on a given element,
2341
+ they also match on the element's [=flat-tree=] ancestors,
2342
+ up to and including the first [=top layer=] element
2343
+ or the [=root=] element,
2344
+ whichever is encountered first.
2345
+
2336
2346
Note: The specifics of hit-testing,
2337
2347
necessary to know when several of the pseudo-classes defined in this section apply,
2338
2348
are not yet defined,
You can’t perform that action at this time.
0 commit comments