Sat, 01 Mar 2014 15:01:38 +0000
[css-syntax] Add some examples for <An+B>
css-syntax/Overview.bs | file | annotate | diff | comparison | revisions | |
css-syntax/Overview.html | file | annotate | diff | comparison | revisions |
1.1 --- a/css-syntax/Overview.bs Fri Feb 28 16:34:52 2014 -0800 1.2 +++ b/css-syntax/Overview.bs Sat Mar 01 15:01:38 2014 +0000 1.3 @@ -2607,7 +2607,10 @@ 1.4 1.5 <div class="example"> 1.6 <p>Example: 1.7 - <pre>-n+6 /* represents the first 6 elements of the list */</pre> 1.8 + <pre><!-- 1.9 + -->-1n+6 /* represents the first 6 elements of the list */
<!-- 1.10 + -->-4n+10 /* represents the 2nd, 6th, and 10th elements of the list */ 1.11 + </pre> 1.12 </div> 1.13 1.14 If both <var>A</var> and <var>B</var> are 0, 1.15 @@ -2674,6 +2677,15 @@ 1.16 -->+ 2</pre> 1.17 </div> 1.18 1.19 + When B is negative, its minus sign replaces the ''+'' sign. 1.20 + 1.21 + <div class="example"> 1.22 + <p>Valid example: 1.23 + <pre>3n-6</pre> 1.24 + <p>Invalid example: 1.25 + <pre>3n + -6</pre> 1.26 + </div> 1.27 + 1.28 1.29 <h3 id="the-anb-type"> 1.30 The <code><an+b></code> type</h3>
2.1 --- a/css-syntax/Overview.html Fri Feb 28 16:34:52 2014 -0800 2.2 +++ b/css-syntax/Overview.html Sat Mar 01 15:01:38 2014 +0000 2.3 @@ -58,7 +58,7 @@ 2.4 </p> 2.5 <h1 class="p-name no-ref" id=title>CSS Syntax Module Level 3</h1> 2.6 <h2 class="no-num no-toc no-ref heading settled heading" id=subtitle><span class=content>Editor’s Draft, 2.7 - <span class=dt-updated><span class=value-title title=20140221>21 February 2014</span></span></span></h2> 2.8 + <span class=dt-updated><span class=value-title title=20140301>1 March 2014</span></span></span></h2> 2.9 <div data-fill-with=spec-metadata><dl><dt>This version:<dd><a class=u-url href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Latest version:<dd><a href=http://www.w3.org/TR/css-syntax-3/>http://www.w3.org/TR/css-syntax-3/</a><dt>Editor’s Draft:<dd><a href=http://dev.w3.org/csswg/css-syntax/>http://dev.w3.org/csswg/css-syntax/</a><dt>Previous Versions:<dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20131105/</a><dd><a href=http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/ rel=previous>http://www.w3.org/TR/2013/WD-css-syntax-3-20130919/</a> 2.10 <dt>Feedback:</dt> 2.11 <dd><a href="mailto:www-style@w3.org?subject=%5Bcss-syntax%5D%20feedback">www-style@w3.org</a> 2.12 @@ -4118,7 +4118,9 @@ 2.13 2.14 <div class=example> 2.15 <p>Example: 2.16 -<pre>-n+6 /* represents the first 6 elements of the list */</pre> </div> 2.17 + <pre>-1n+6 /* represents the first 6 elements of the list */ 2.18 +-4n+10 /* represents the 2nd, 6th, and 10th elements of the list */ 2.19 +</pre> </div> 2.20 2.21 <p> If both <var>A</var> and <var>B</var> are 0, 2.22 the pseudo-class represents no element in the list. 2.23 @@ -4174,6 +4176,13 @@ 2.24 + 2n 2.25 + 2</pre> </div> 2.26 2.27 +<p> When B is negative, its minus sign replaces the <span class=css data-link-type=maybe title=+>+</span> sign. 2.28 + 2.29 + <div class=example> 2.30 + <p>Valid example: 2.31 +<pre>3n-6</pre> <p>Invalid example: 2.32 +<pre>3n + -6</pre> </div> 2.33 + 2.34 2.35 <h3 class="heading settled heading" data-level=6.2 id=the-anb-type><span class=secno>6.2 </span><span class=content> 2.36 The <code><an+b></code> type</span><a class=self-link href=#the-anb-type></a></h3>