- From: Elika Etemad via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 10 Oct 2011 21:06:26 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/selectors4 In directory hutz:/tmp/cvs-serv12879 Modified Files: Overview.html Overview.src.html Log Message: Fix typos <http://lists.w3.org/Archives/Public/www-style/2011Jul/0446.html>, grammar error <http://lists.w3.org/Archives/Public/www-style/2011Mar/0215.html>, and add issues for :lang() <http://lists.w3.org/Archives/Public/www-international/2011OctDec/0000.html> and [attr=val] <http://lists.w3.org/Archives/Public/www-style/2011Jul/0446.html> syntactic sugar. Index: Overview.html =================================================================== RCS file: /sources/public/csswg/selectors4/Overview.html,v retrieving revision 1.59 retrieving revision 1.60 diff -u -d -r1.59 -r1.60 --- Overview.html 1 Oct 2011 03:09:29 -0000 1.59 +++ Overview.html 10 Oct 2011 21:06:24 -0000 1.60 @@ -19,12 +19,13 @@ <h1 id=title>Selectors Level 4</h1> - <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 October 2011</h2> + <h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 10 October + 2011</h2> <dl> <dt>This version: <!-- - <dd><a href="http://www.w3.org/TR/2011/ED-selectors4-20111001/"> - http://www.w3.org/TR/2011/WD-selectors4-20111001/</a> + <dd><a href="http://www.w3.org/TR/2011/ED-selectors4-20111010/"> + http://www.w3.org/TR/2011/WD-selectors4-20111010/</a> <dt>Editor's draft: --> @@ -72,13 +73,13 @@ <p class=copyright><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright" rel=license>Copyright</a> © 2011 <a - href="http://www.w3.org/"><acronym title="World Wide Web - Consortium">W3C</acronym></a><sup>®</sup> (<a - href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute - of Technology">MIT</acronym></a>, <a href="http://www.ercim.eu/"><acronym - title="European Research Consortium for Informatics and - Mathematics">ERCIM</acronym></a>, <a - href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a + href="http://www.w3.org/"><acronym + title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup> (<a + href="http://www.csail.mit.edu/"><acronym + title="Massachusetts Institute of Technology">MIT</acronym></a>, <a + href="http://www.ercim.eu/"><acronym + title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, + <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> @@ -484,10 +485,10 @@ <p>These expressions can also be used, for instance, to select a set of elements, or a single element from a set of elements, by evaluating the - expression across all the elements in a subtree. <abbr title="Simple Tree - Transformation Sheets">STTS</abbr> (Simple Tree Transformation Sheets), a - language for transforming XML trees, uses this mechanism. <a href="#STTS3" - rel=biblioentry>[STTS3]<!--{{STTS3}}--></a> + expression across all the elements in a subtree. <abbr + title="Simple Tree Transformation Sheets">STTS</abbr> (Simple Tree + Transformation Sheets), a language for transforming XML trees, uses this + mechanism. <a href="#STTS3" rel=biblioentry>[STTS3]<!--{{STTS3}}--></a> <p>Selectors Levels 1, 2, and 3 are defined as the subsets of selector functionality defined in the <a @@ -1037,11 +1038,11 @@ <td>4 <tr> - <td><code>E:nth-match(<var>n</var> of <a + <td><code>E:nth-last-match(<var>n</var> of <a href="#selector"><var>selector</var></a>)</code> <td>an E element, the <var>n</var>-th sibling matching <a - href="#selector"><var>selector</var></a> + href="#selector"><var>selector</var></a>, counting from the last one <td><a href="#structural-pseudos">Structural pseudo-classes</a> @@ -1627,9 +1628,9 @@ <p class=note><strong>Note:</strong> it is recommended that the <code>*</code> not be omitted, because it decreases the potential confusion between, for example, <code style="white-space: nowrap">div - :first-child</code> and <code style="white-space: - nowrap">div:first-child</code>. Here, <code style="white-space: - nowrap">div *:first-child</code> is more readable. + :first-child</code> and <code + style="white-space: nowrap">div:first-child</code>. Here, <code + style="white-space: nowrap">div *:first-child</code> is more readable. <h4 id=univnmsp><span class=secno>5.2.1. </span> Universal selector and namespaces</h4> @@ -1668,6 +1669,10 @@ attribute that matches the attribute represented by the attribute selector. + <p class=issue>Add comma-separated syntax for <a + href="http://lists.w3.org/Archives/Public/www-style/2011Mar/0215.html">multiple-value + matching</a>? e.g. [rel ~= next, prev, up, first, last] + <h3 id=attribute-representation><span class=secno>6.1. </span> Attribute presence and value selectors</h3> @@ -1816,9 +1821,9 @@ <p>By default case-sensitivity of attribute names and values in selectors depends on the document language. To match attribute values case-insensitively regardless of document language rules, the attribute - selector may include the identifier <code>i</code> immediately inside the - closing bracket (<code>]</code>). When this flag is present, UAs must - match the attribute's value case-insensitively within the ASCII range. + selector may include the identifier <code>i</code> before the closing + bracket (<code>]</code>). When this flag is present, UAs must match the + attribute's value case-insensitively within the ASCII range. <div class=example> <p>The following rule will style the <code>frame</code> attribute when it @@ -1830,6 +1835,10 @@ <!-- -->[frame=hsides i] { border-style: solid none; } </pre> </div> + <!-- plinss notes we may eventually want to choose other normalizations + for attribute matching; but since there's no normalization scheme + that really seems needed at this point, this issue is deferred to + a later level --> <h3 id=attrnmsp><span class=secno>6.4. </span> Attribute selectors and namespaces</h3> @@ -2440,6 +2449,11 @@ within the ASCII range. The identifier C does not have to be a valid language name. + <p class=issue>It's been <a + href="http://lists.w3.org/Archives/Public/www-international/2011OctDec/0000.html">proposed</a> + to allow :lang() to take a comma-separated list, as this will make an + easier syntax when multiple languages need to be selected against. + <p>C must be a valid CSS <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">identifier</a> <a href="#CSS21" rel=biblioentry>[CSS21]<!--{{!CSS21}}--></a> and must not @@ -3088,14 +3102,14 @@ <h3 id=nth-last-column-pseudo><span class=secno>13.3. </span> ‘<code class=css>:nth-last-column()</code>’ pseudo-class</h3> - <p>The <code>:nth-column(<var>a</var>n+<var>b</var>)</code> pseudo-class - notation represents a cell element belonging to a column that has - <var>a</var><code>n</code>+<var>b</var>-1 columns <strong>after</strong> - it, for any positive integer or zero value of <code>n</code>. Column - membership is determined based on the semantics of the document language - only: whether and how the elements are presented is not considered. If a - cell element belongs to more than one column, it is represented by a - selector indicating any of those columns. + <p>The <code>:nth-last-column(<var>a</var>n+<var>b</var>)</code> + pseudo-class notation represents a cell element belonging to a column that + has <var>a</var><code>n</code>+<var>b</var>-1 columns + <strong>after</strong> it, for any positive integer or zero value of + <code>n</code>. Column membership is determined based on the semantics of + the document language only: whether and how the elements are presented is + not considered. If a cell element belongs to more than one column, it is + represented by a selector indicating any of those columns. <p>See <a href="#nth-child-pseudo"><code>:nth-child()</code></a> pseudo-class for the syntax of its argument. It also accepts the @@ -3385,7 +3399,7 @@ SUBSTRINGMATCH | '=' | INCLUDES | - DASHMATCH ] S* [ IDENT | STRING ] S* + DASHMATCH ] S* [ IDENT | STRING ] S* [IDENT S*]? ]? ']' ; @@ -3657,8 +3671,8 @@ classes: <dl> - <dt><dfn id=selector-instance title="selector instance!!as conformance - class">selector instance</dfn> + <dt><dfn id=selector-instance + title="selector instance!!as conformance class">selector instance</dfn> <dd>A written selector. Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/selectors4/Overview.src.html,v retrieving revision 1.61 retrieving revision 1.62 diff -u -d -r1.61 -r1.62 --- Overview.src.html 1 Oct 2011 03:09:29 -0000 1.61 +++ Overview.src.html 10 Oct 2011 21:06:24 -0000 1.62 @@ -441,8 +441,9 @@ <td><a href="#structural-pseudos">Structural pseudo-classes</a> <td>4 <tr> - <td><code>E:nth-match(<var>n</var> of <var>selector</var>)</code> - <td>an E element, the <var>n</var>-th sibling matching <var>selector</var> + <td><code>E:nth-last-match(<var>n</var> of <var>selector</var>)</code> + <td>an E element, the <var>n</var>-th sibling matching <var>selector</var>, + counting from the last one <td><a href="#structural-pseudos">Structural pseudo-classes</a> <td>4 <tbody> @@ -993,6 +994,10 @@ element has an attribute that matches the attribute represented by the attribute selector.</p> + <p class="issue">Add comma-separated syntax for + <a href="http://lists.w3.org/Archives/Public/www-style/2011Mar/0215.html">multiple-value matching</a>? + e.g. [rel ~= next, prev, up, first, last] + <h3 id=attribute-representation> Attribute presence and value selectors</h3> @@ -1124,7 +1129,7 @@ <p>By default case-sensitivity of attribute names and values in selectors depends on the document language. To match attribute values case-insensitively regardless of document language rules, the attribute selector may include the - identifier <code>i</code> immediately inside the closing bracket (<code>]</code>). + identifier <code>i</code> before the closing bracket (<code>]</code>). When this flag is present, UAs must match the attribute's value case-insensitively within the ASCII range. @@ -1138,6 +1143,11 @@ </pre> </div> + <!-- plinss notes we may eventually want to choose other normalizations + for attribute matching; but since there's no normalization scheme + that really seems needed at this point, this issue is deferred to + a later level --> + <h3 id=attrnmsp> Attribute selectors and namespaces</h3> @@ -1708,6 +1718,10 @@ element's language value is performed case-insensitively within the ASCII range. The identifier C does not have to be a valid language name.</p> + <p class="issue">It's been <a href="http://lists.w3.org/Archives/Public/www-international/2011OctDec/0000.html">proposed</a> + to allow :lang() to take a comma-separated list, as this will make + an easier syntax when multiple languages need to be selected against. + <p>C must be a valid CSS <a href="http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier">identifier</a> [[!CSS21]] and must not be empty. (Otherwise, the selector is invalid.)</p> @@ -2304,7 +2318,7 @@ <h3 id="nth-last-column-pseudo"> '':nth-last-column()'' pseudo-class</h3> - <p>The <code>:nth-column(<var>a</var>n+<var>b</var>)</code> + <p>The <code>:nth-last-column(<var>a</var>n+<var>b</var>)</code> pseudo-class notation represents a cell element belonging to a column that has <var>a</var><code>n</code>+<var>b</var>-1 columns <strong>after</strong> it, for any positive @@ -2574,7 +2588,7 @@ SUBSTRINGMATCH | '=' | INCLUDES | - DASHMATCH ] S* [ IDENT | STRING ] S* + DASHMATCH ] S* [ IDENT | STRING ] S* [IDENT S*]? ]? ']' ;
Received on Monday, 10 October 2011 21:06:29 UTC