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>
23182318 for the selection of an element the user is acting on.
23192319 (In non-interactive user agents, these pseudo-classes are valid, but never match any element.)
23202320
2321- These pseudo-classes are not mutually exclusive.
2321+ The [=user action pseudo-classes=] are not mutually exclusive.
23222322 An element can match several such pseudo-classes at the same time.
23232323
23242324 <div class="example">
@@ -2333,6 +2333,16 @@ User Action Pseudo-classes</h2>
23332333 </pre>
23342334 </div>
23352335
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+
23362346 Note: The specifics of hit-testing,
23372347 necessary to know when several of the pseudo-classes defined in this section apply,
23382348 are not yet defined,
You can’t perform that action at this time.
0 commit comments