- From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 06 Dec 2011 20:43:50 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-lists In directory hutz:/tmp/cvs-serv19334 Modified Files: Overview.html Overview.src.html Log Message: Made 'range' accept multiple ranges (useful for complex additive styles) Index: Overview.html =================================================================== RCS file: /sources/public/csswg/css3-lists/Overview.html,v retrieving revision 1.124 retrieving revision 1.125 diff -u -d -r1.124 -r1.125 --- Overview.html 6 Dec 2011 18:48:32 -0000 1.124 +++ Overview.html 6 Dec 2011 20:43:47 -0000 1.125 @@ -1405,9 +1405,8 @@ <li>a <dfn id=suffix title=counter-suffix>suffix</dfn>, to append to the representation - <li>an <dfn id=upper title=counter-upper-bound>upper</dfn> and <dfn - id=lower-range-bound title=counter-lower-bound>lower range bound</dfn>, - to specify the (inclusive) range that the counter style can handle + <li>a <dfn id=range title=counter-range>range</dfn>, which limits the + values that a counter style can handle <li>and a <dfn id=fallback-style title=counter-fallback>fallback style</dfn>, to render the representation with when the counter value is @@ -1429,12 +1428,12 @@ counter value, follow these steps: <ol> - <li>If the counter value is less than the <a href="#lower-range-bound"><i - title=counter-lower-bound>lower bound</i></a> or greater than the <a - href="#upper"><i title=counter-upper-bound>upper bound</i></a> of the - counter style, exit this algorithm and instead <i - title=generate-a-counter>generate a counter representation</i> using the - counter style's fallback style and the same counter value. + <li>If the counter value is less than the <i + title=counter-lower-bound>lower bound</i> or greater than the <i + title=counter-upper-bound>upper bound</i> of the counter style, exit this + algorithm and instead <i title=generate-a-counter>generate a counter + representation</i> using the counter style's fallback style and the same + counter value. <li>Using the counter value and the <a href="#algorithm"><i title=counter-algorithm>counter algorithm</i></a> for the counter style, @@ -2114,7 +2113,7 @@ <tr> <th>Value: - <td>[ <integer> | infinite ]{2} | auto + <td>[ [ <integer> | infinite ]{2} ]# | auto <tr> <th>Initial: @@ -2123,19 +2122,21 @@ </table> <p>The ‘<a href="#descdef-range"><code - class=property>range</code></a>’ descriptor defines the range over + class=property>range</code></a>’ descriptor defines the ranges over which the counter style is defined. If a counter style is used to - represent a counter value outside of its range, the counter style instead + represent a counter value outside of its ranges, the counter style instead drops down to its fallback counter style. <p>If the value is not ‘<code class=css>auto</code>’, the first - value represents the lower bound of the range (with ‘<code - class=property>infinite</code>’ representing negative infinity), and - the second value represents the upper bound of the range (with - ‘<code class=property>infinite</code>’ representing positive - infinity). This is an inclusive range - it includes both the lower and - upper bound numbers. If the lower bound is higher than the higher bound, - the descriptor is invalid and must be ignored. + value of each range in the list represents the lower bound of the range + (with ‘<code class=css>infinite</code>’ representing negative + infinity), and the second value represents the upper bound of the range + (with ‘<code class=property>infinite</code>’ representing + positive infinity). This is an inclusive range - it includes both the + lower and upper bound numbers. The range of the counter style as a whole + is the union of the individual ranges. If the lower bound of any range is + higher than the higher bound, the entire descriptor is invalid and must be + ignored. <p>If the value is ‘<code class=css>auto</code>’, the range depends on the counter type. For ‘<code @@ -2335,14 +2336,13 @@ counter style with no <a href="#name"><i title=counter-name>name</i></a>, a <a href="#prefix"><i title=counter-prefix>prefix</i></a> and <a href="#suffix"><i title=counter-suffix>suffix</i></a> of ‘<code - class=css>""</code>’ (the empty string), a <a - href="#lower-range-bound"><i title=counter-lower-bound>lower bound</i></a> - of negative infinity, an <a href="#upper"><i - title=counter-upper-bound>upper bound</i></a> of infinity, an <a - href="#fallback-style"><i title=counter-fallback>fallback style</i></a> of - ‘<a href="#decimal"><code class=css>decimal</code></a>’, and a - <a href="#negative-sign"><i title=counter-negative>negative sign</i></a> - of "\2D" ("-" hyphen-minus). The counter style's <a href="#algorithm"><i + class=css>""</code>’ (the empty string), a <a href="#range"><i + title=counter-range>range</i></a> from negative infinity to positive + infinity, an <a href="#fallback-style"><i title=counter-fallback>fallback + style</i></a> of ‘<a href="#decimal"><code + class=css>decimal</code></a>’, and a <a href="#negative-sign"><i + title=counter-negative>negative sign</i></a> of "\2D" ("-" hyphen-minus). + The counter style's <a href="#algorithm"><i title=counter-algorithm>algorithm</i></a> is constructed by consulting the previous chapter using the provided type - or ‘<code class=css>symbolic</code>’ if the type was omitted - and the @@ -2896,9 +2896,6 @@ <li>counter-fallback, <a href="#fallback-style" title=counter-fallback><strong>8.</strong></a> - <li>counter-lower-bound, <a href="#lower-range-bound" - title=counter-lower-bound><strong>8.</strong></a> - <li>counter-name, <a href="#name" title=counter-name><strong>8.</strong></a> @@ -2908,6 +2905,9 @@ <li>counter-prefix, <a href="#prefix" title=counter-prefix><strong>8.</strong></a> + <li>counter-range, <a href="#range" + title=counter-range><strong>8.</strong></a> + <li><counter-style>, <a href="#ltcounter-style" title="<counter-style>"><strong>3.</strong></a> @@ -2920,9 +2920,6 @@ <li>counter symbol, <a href="#counter-symbol" title="counter symbol"><strong>8.7.</strong></a> - <li>counter-upper-bound, <a href="#upper" - title=counter-upper-bound><strong>8.</strong></a> - <li>current tuple, <a href="#current-tuple" title="current tuple"><strong>8.1.6.</strong></a> Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-lists/Overview.src.html,v retrieving revision 1.171 retrieving revision 1.172 diff -u -d -r1.171 -r1.172 --- Overview.src.html 6 Dec 2011 18:48:32 -0000 1.171 +++ Overview.src.html 6 Dec 2011 20:43:48 -0000 1.172 @@ -846,9 +846,7 @@ <li>a <dfn title='counter-suffix'>suffix</dfn>, to append to the representation</li> - <li>an <dfn title='counter-upper-bound'>upper</dfn> and - <dfn title='counter-lower-bound'>lower range bound</dfn>, to specify the - (inclusive) range that the counter style can handle</li> + <li>a <dfn title='counter-range'>range</dfn>, which limits the values that a counter style can handle</li> <li>and a <dfn title='counter-fallback'>fallback style</dfn>, to render the representation with when the counter value is outside the counter style's @@ -1422,22 +1420,17 @@ <td><dfn id="descdef-range">range</dfn> <tr> <th>Value: - <td>[ <integer> | infinite ]{2} | auto + <td>[ [ <integer> | infinite ]{2} ]# | auto <tr> <th>Initial: <td>auto </table> - <p>The 'range' descriptor defines the range over which the counter style is defined. - If a counter style is used to represent a counter value outside of its range, + <p>The 'range' descriptor defines the ranges over which the counter style is defined. + If a counter style is used to represent a counter value outside of its ranges, the counter style instead drops down to its fallback counter style.</p> - <p>If the value is not ''auto'', the first value represents the lower bound of the range (with 'infinite' - representing negative infinity), and the second value represents the upper bound - of the range (with 'infinite' representing positive infinity). This is an inclusive - range - it includes both the lower and upper bound numbers. If the lower - bound is higher than the higher bound, the descriptor is invalid and must - be ignored.</p> + <p>If the value is not ''auto'', the first value of each range in the list represents the lower bound of the range (with ''infinite'' representing negative infinity), and the second value represents the upper bound of the range (with 'infinite' representing positive infinity). This is an inclusive range - it includes both the lower and upper bound numbers. The range of the counter style as a whole is the union of the individual ranges. If the lower bound of any range is higher than the higher bound, the entire descriptor is invalid and must be ignored.</p> <p>If the value is ''auto'', the range depends on the counter type. For ''repeating'', ''numeric'', and ''non-repeating'' types, it must be treated identically to specifying ''infinite infinite''. For ''alphabetic'' and ''symbolic'', it must be treated identically to ''1 infinite''. For ''additive'', it must be treated identically to ''0 infinite''. For ''override'', it must be treated according to the type of the counter style it is overriding.</p> @@ -1556,7 +1549,7 @@ <p>Where <type> is one of the following keywords: ''repeating'', ''numeric'', ''alphabetic'', ''symbolic'', or ''non-repeating''.</p> - <p>The ''symbols()'' function defines an anonymous counter style with no <i title="counter-name">name</i>, a <i title="counter-prefix">prefix</i> and <i title="counter-suffix">suffix</i> of ''""'' (the empty string), a <i title="counter-lower-bound">lower bound</i> of negative infinity, an <i title="counter-upper-bound">upper bound</i> of infinity, an <i title="counter-fallback">fallback style</i> of ''decimal'', and a <i title="counter-negative">negative sign</i> of "\2D" ("-" hyphen-minus). The counter style's <i title="counter-algorithm">algorithm</i> is constructed by consulting the previous chapter using the provided type - or ''symbolic'' if the type was omitted - and the provided <string>s and <image>s as the value of the 'symbols' property. If the type is ''non-repeating'', the <i>first symbol value</i> is ''1''.</p> + <p>The ''symbols()'' function defines an anonymous counter style with no <i title="counter-name">name</i>, a <i title="counter-prefix">prefix</i> and <i title="counter-suffix">suffix</i> of ''""'' (the empty string), a <i title="counter-range">range</i> from negative infinity to positive infinity, an <i title="counter-fallback">fallback style</i> of ''decimal'', and a <i title="counter-negative">negative sign</i> of "\2D" ("-" hyphen-minus). The counter style's <i title="counter-algorithm">algorithm</i> is constructed by consulting the previous chapter using the provided type - or ''symbolic'' if the type was omitted - and the provided <string>s and <image>s as the value of the 'symbols' property. If the type is ''non-repeating'', the <i>first symbol value</i> is ''1''.</p> <div class='example'> <p>This code:</p>
Received on Tuesday, 6 December 2011 20:43:52 UTC