Skip to content

Commit bf7ef82

Browse files
committed
merge conflicts
2 parents d96ed12 + cdabbbf commit bf7ef82

2 files changed

Lines changed: 30 additions & 28 deletions

File tree

selectors4/Overview.html

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2252,24 +2252,25 @@ <h3 id=scope-pseudo><span class=secno>7.5. </span> The contextual reference
22522252
element pseudo-class ‘<a href="#scope"><code
22532253
class=css>:scope</code></a></h3>
22542254

2255-
<p class=issue>Should this be renamed to <code>:context</code>, since it's
2256-
referencing a <em>context</em>ual reference element?
2257-
2258-
<p>The <a href="#scope"><code>:scope</code></a> pseudo-class represents any
2259-
element that is in the <a
2260-
href="#contextual-reference-element-set"><i>contextual reference element
2261-
set</i></a>. If no contextual reference element set is given, <a
2262-
href="#scope"><code>:scope</code></a> is equivalent to <code>:root</code>.
2263-
2264-
2265-
<p>The <dfn id=contextual-reference-element-set>contextual reference
2266-
element set</dfn> is a (potentially empty) explicitly-specified set of
2255+
<p> The <a href="#scope"><code>:scope</code></a> pseudo-class represents
2256+
any element that is in the <dfn
2257+
id=contextual-reference-element-set>contextual reference element
2258+
set</dfn>. This is is a (potentially empty) explicitly-specified set of
22672259
elements, such as that specified by the <code>querySelector()</code> call
22682260
in <a href="#SELECTORS-API2"
2269-
rel=biblioentry>[SELECTORS-API2]<!--{{SELECTORS-API2}}--></a>.
2261+
rel=biblioentry>[SELECTORS-API2]<!--{{SELECTORS-API2}}--></a>, or the
2262+
parent element of a <a
2263+
href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element">scoped
2264+
<code>&lt;style></code> element</a> in <a href="#HTML5"
2265+
rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>, which is used to "scope" a
2266+
selector so that it only matches within a subtree.
2267+
2268+
<p> If no contextual reference element set is given, <a
2269+
href="#scope"><code>:scope</code></a> is equivalent to <code>:root</code>.
22702270
Specifications intending for this pseudo-class to match specific elements
2271-
rather than the document's root element must define a contextual reference
2272-
element set.
2271+
rather than the document's root element must define a <a
2272+
href="#contextual-reference-element-set"><i>contextual reference element
2273+
set</i></a>.
22732274

22742275
<h2 id=useraction-pseudos><span class=secno>8. </span> User Action
22752276
Pseudo-classes</h2>

selectors4/Overview.src.html

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1546,19 +1546,20 @@ <h3 id=target-pseudo>
15461546
<h3 id=scope-pseudo>
15471547
The contextual reference element pseudo-class '':scope''</h3>
15481548

1549-
<p class="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 <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element">scoped <code>&lt;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>.
15621563

15631564
<h2 id=useraction-pseudos>
15641565
User Action Pseudo-classes</h2>

0 commit comments

Comments
 (0)