- From: Elika Etemad via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 18 Jul 2011 22:24:32 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/selectors4 In directory hutz:/tmp/cvs-serv26249 Modified Files: Overview.html Overview.src.html Log Message: Redo :scope definition using text more closely aligned to selectors-api2 Index: Overview.html =================================================================== RCS file: /sources/public/csswg/selectors4/Overview.html,v retrieving revision 1.27 retrieving revision 1.28 diff -u -d -r1.27 -r1.28 --- Overview.html 18 Jul 2011 21:25:10 -0000 1.27 +++ Overview.html 18 Jul 2011 22:24:30 -0000 1.28 @@ -1800,15 +1800,17 @@ <h3 id=scope-pseudo><span class=secno>7.3. </span> The scope pseudo-class :scope</h3> - <p>Sometimes the host language applies selectors within a limited scope - within the document. For example, a <i>contextual reference node</i> in a - <code>querySelector</code> call [[SELECT-API2]] or the parent element of a - scoped HTML <code><style></code> element <a href="#HTML5" - rel=biblioentry>[HTML5]<!--{{HTML5}}--></a> defines a scope. The - <code>:scope</code> pseudo-class represents an element that defines scope - for the selector. If no scope is given, <code>:scope</code> is equivalent - to <code>:root</code>. <span class=issue>If the scope is not defined by an - element, then ???.</span> + <p>The <code>:scope</code> pseudo-class represents any element that is in + the <a href="#contextual-reference-element-set"><i>contextual reference + element set</i></a>. If no contextual reference element set is given, + <code>:scope</code> is equivalent to <code>:root</code>. + + <p>The <dfn id=contextual-reference-element-set>contextual reference + element set</dfn> is a (potentially empty) explicitly-specified set of + elements, such as that specified by the <code>querySelector()</code> call + in [[SELECT-API2]]. Specifications intending for this pseudo-class to + match specific elements rather than the document's root element must + define a contextual reference element set. <h3 id=target-pseudo><span class=secno>7.4. </span> The target pseudo-class :target</h3> Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/selectors4/Overview.src.html,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- Overview.src.html 18 Jul 2011 21:25:10 -0000 1.29 +++ Overview.src.html 18 Jul 2011 22:24:30 -0000 1.30 @@ -1322,14 +1322,16 @@ <h3 id=scope-pseudo> The scope pseudo-class :scope</h3> - <p>Sometimes the host language applies selectors within a limited scope within - the document. For example, a <i>contextual reference node</i> in a - <code>querySelector</code> call [[SELECT-API2]] or the parent element of a - scoped HTML <code><style></code> element [[HTML5]] defines a scope. - The <code>:scope</code> pseudo-class represents an element that defines - scope for the selector. If no scope is given, <code>:scope</code> is - equivalent to <code>:root</code>. - <span class="issue">If the scope is not defined by an element, then ???.</span> + <p>The <code>:scope</code> pseudo-class represents any element that is in + the <i>contextual reference element set</i>. If no contextual reference + element set is given, <code>:scope</code> is equivalent to <code>:root</code>. + + <p>The <dfn>contextual reference element set</dfn> is a (potentially empty) + explicitly-specified set of elements, such as that specified by the + <code>querySelector()</code> call in [[SELECT-API2]]. + Specifications intending for this pseudo-class to match specific elements + rather than the document's root element must define a contextual reference + element set. <h3 id=target-pseudo> The target pseudo-class :target</h3>
Received on Monday, 18 July 2011 22:24:33 UTC