@@ -28,6 +28,7 @@ At Risk: [=user action pseudo-classes=] applying to non-[=tree-abiding pseudo-el
28
28
At Risk : the '':blank'' pseudo-class
29
29
Ignored Terms : function token, Document, DocumentFragment, math, h1, shadow tree, querySelector(), quirks mode, button, a, span, object, p, div, q, area, link, label, input, html, em, li, ol, pre, CSS Value Definition Syntax
30
30
Ignored Vars : identifier, i
31
+ Ignore MDN Failure : #the-target-within-pseudo
31
32
</pre>
32
33
<pre class=link-defaults>
33
34
spec:css-values-4; type:dfn; text:identifier
@@ -2287,10 +2288,11 @@ The Reference Element Pseudo-class: '':scope''</h3>
2287
2288
or a virtual one (such as a {{DocumentFragment}} ).
2288
2289
2289
2290
If there is no [=scoping root=]
2290
- then '':scope'' represents the root of the document
2291
- (equivalent to '':root'' ).
2291
+ then '':scope'' represents the root of the tree the element is in
2292
+ (equivalent to '':host'' in a [=shadow tree=] ,
2293
+ or '':root'' otherwise).
2292
2294
Specifications intending for this pseudo-class to match specific elements
2293
- rather than the document's root element
2295
+ rather than this tree root element
2294
2296
must define their [=scoping root|scoping root(s)=] .
2295
2297
2296
2298
A virtual [=scoping root=] is some object representing the root of a document fragment,
@@ -2338,9 +2340,9 @@ User Action Pseudo-classes</h2>
2338
2340
match on that element's ancestors as well:
2339
2341
'':hover'' , '':active'' , '':focus-within'' .
2340
2342
Specifically, if these match on a given element,
2341
- they also match on the element's [=flat- tree=] ancestors,
2343
+ they also match on the element's [=flat tree=] ancestors,
2342
2344
up to and including the first [=top layer=] element
2343
- or the [=root=] element,
2345
+ or the [=tree/ root=] element,
2344
2346
whichever is encountered first.
2345
2347
2346
2348
Note: The specifics of hit-testing,
0 commit comments