Skip to content

Commit cdabbbf

Browse files
committed
Remove :context issue from :scope section. Add reference to scoped stylesheets. Slightly reword section editorially.
1 parent 47dbcb9 commit cdabbbf

2 files changed

Lines changed: 36 additions & 33 deletions

File tree

selectors4/Overview.html

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919

2020
<h1 id=title>Selectors Level 4</h1>
2121

22-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 22 June 2012</h2>
22+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 9 August 2012</h2>
2323

2424
<dl>
2525
<dt>This version: <!--
26-
<dd><a href="http://www.w3.org/TR/2012/ED-selectors4-20120622/">
27-
http://www.w3.org/TR/2012/WD-selectors4-20120622/</a>
26+
<dd><a href="http://www.w3.org/TR/2012/ED-selectors4-20120809/">
27+
http://www.w3.org/TR/2012/WD-selectors4-20120809/</a>
2828
2929
<dt>Editor's draft:
3030
-->
@@ -2219,22 +2219,24 @@ <h3 id=target-pseudo><span class=secno>7.4. </span> The target pseudo-class
22192219
<h3 id=scope-pseudo><span class=secno>7.5. </span> The contextual reference
22202220
element pseudo-class ‘<code class=css>:scope</code></h3>
22212221

2222-
<p class=issue>Should this be renamed to <code>:context</code>, since it's
2223-
referencing a <em>context</em>ual reference element?
2224-
2225-
<p>The <code>:scope</code> pseudo-class represents any element that is in
2226-
the <a href="#contextual-reference-element-set"><i>contextual reference
2227-
element set</i></a>. If no contextual reference element set is given,
2228-
<code>:scope</code> is equivalent to <code>:root</code>.
2229-
2230-
<p>The <dfn id=contextual-reference-element-set>contextual reference
2231-
element set</dfn> is a (potentially empty) explicitly-specified set of
2222+
<p> The <code>:scope</code> pseudo-class represents any element that is in
2223+
the <dfn id=contextual-reference-element-set>contextual reference element
2224+
set</dfn>. This is is a (potentially empty) explicitly-specified set of
22322225
elements, such as that specified by the <code>querySelector()</code> call
22332226
in <a href="#SELECTORS-API2"
2234-
rel=biblioentry>[SELECTORS-API2]<!--{{SELECTORS-API2}}--></a>.
2235-
Specifications intending for this pseudo-class to match specific elements
2236-
rather than the document's root element must define a contextual reference
2237-
element set.
2227+
rel=biblioentry>[SELECTORS-API2]<!--{{SELECTORS-API2}}--></a>, or the
2228+
parent element of a <a
2229+
href="http://www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#the-style-element">scoped
2230+
<code>&lt;style></code> element</a> in <a href="#HTML5"
2231+
rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>, which is typically used to
2232+
"scope" a selector so that it only matches within a subtree.
2233+
2234+
<p> If no contextual reference element set is given, <code>:scope</code> is
2235+
equivalent to <code>:root</code>. Specifications intending for this
2236+
pseudo-class to match specific elements rather than the document's root
2237+
element must define a <a
2238+
href="#contextual-reference-element-set"><i>contextual reference element
2239+
set</i></a>.
22382240

22392241
<h2 id=useraction-pseudos><span class=secno>8. </span> User Action
22402242
Pseudo-classes</h2>
@@ -3941,10 +3943,10 @@ <h3 id=informative-references><span class=secno>20.2. </span> Informative
39413943
<dt id=SELECTORS-API2>[SELECTORS-API2]
39423944

39433945
<dd>Lachlan Hunt. <a
3944-
href="http://www.w3.org/TR/2010/WD-selectors-api2-20100119/"><cite>Selectors
3945-
API Level 2.</cite></a> 19 January 2010. W3C Working Draft. (Work in
3946+
href="http://www.w3.org/TR/2012/WD-selectors-api2-20120628/"><cite>Selectors
3947+
API Level 2.</cite></a> 28 June 2012. W3C Working Draft. (Work in
39463948
progress.) URL: <a
3947-
href="http://www.w3.org/TR/2010/WD-selectors-api2-20100119/">http://www.w3.org/TR/2010/WD-selectors-api2-20100119/</a>
3949+
href="http://www.w3.org/TR/2012/WD-selectors-api2-20120628/">http://www.w3.org/TR/2012/WD-selectors-api2-20120628/</a>
39483950
</dd>
39493951
<!---->
39503952

selectors4/Overview.src.html

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

1524-
<p class="issue">Should this be renamed to <code>:context</code>, since
1525-
it's referencing a <em>context</em>ual reference element?</p>
1526-
1527-
<p>The <code>:scope</code> pseudo-class represents any element that is in
1528-
the <i>contextual reference element set</i>. If no contextual reference
1529-
element set is given, <code>:scope</code> is equivalent to <code>:root</code>.
1530-
1531-
<p>The <dfn>contextual reference element set</dfn> is a (potentially empty)
1532-
explicitly-specified set of elements, such as that specified by the
1533-
<code>querySelector()</code> call in [[SELECTORS-API2]].
1534-
Specifications intending for this pseudo-class to match specific elements
1535-
rather than the document's root element must define a contextual reference
1536-
element set.
1524+
<p>
1525+
The <code>:scope</code> pseudo-class represents any element that is in
1526+
the <dfn>contextual reference element set</dfn>.
1527+
This is is a (potentially empty) explicitly-specified set of elements,
1528+
such as that specified by the <code>querySelector()</code> call in [[SELECTORS-API2]],
1529+
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]],
1530+
which is used to "scope" a selector so that it only matches within a subtree.
1531+
1532+
<p>
1533+
If no contextual reference element set is given,
1534+
<code>:scope</code> is equivalent to <code>:root</code>.
1535+
Specifications intending for this pseudo-class to match specific elements
1536+
rather than the document's root element
1537+
must define a <i>contextual reference element set</i>.
15371538

15381539
<h2 id=useraction-pseudos>
15391540
User Action Pseudo-classes</h2>

0 commit comments

Comments
 (0)