You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: selectors4/Overview.src.html
+14-13Lines changed: 14 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -1546,19 +1546,20 @@ <h3 id=target-pseudo>
1546
1546
<h3id=scope-pseudo>
1547
1547
The contextual reference element pseudo-class '':scope''</h3>
1548
1548
1549
-
<pclass="issue">Should this be renamed to <code>:context</code>, since
1550
-
it's referencing a <em>context</em>ual reference element?</p>
1551
-
1552
-
<p>The <code>:scope</code> pseudo-class represents any element that is in
1553
-
the <i>contextual reference element set</i>. If no contextual reference
1554
-
element set is given, <code>:scope</code> is equivalent to <code>:root</code>.
1555
-
1556
-
<p>The <dfn>contextual reference element set</dfn> is a (potentially empty)
1557
-
explicitly-specified set of elements, such as that specified by the
1558
-
<code>querySelector()</code> call in [[SELECTORS-API2]].
1559
-
Specifications intending for this pseudo-class to match specific elements
1560
-
rather than the document's root element must define a contextual reference
1561
-
element set.
1549
+
<p>
1550
+
The <code>:scope</code> pseudo-class represents any element that is in
1551
+
the <dfn>contextual reference element set</dfn>.
1552
+
This is is a (potentially empty) explicitly-specified set of elements,
1553
+
such as that specified by the <code>querySelector()</code> call in [[SELECTORS-API2]],
1554
+
or the parent element of a <ahref="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element">scoped <code><style></code> element</a> in [[HTML5]],
1555
+
which is used to "scope" a selector so that it only matches within a subtree.
1556
+
1557
+
<p>
1558
+
If no contextual reference element set is given,
1559
+
<code>:scope</code> is equivalent to <code>:root</code>.
1560
+
Specifications intending for this pseudo-class to match specific elements
1561
+
rather than the document's root element
1562
+
must define a <i>contextual reference element set</i>.
0 commit comments