Skip to content

Commit 05544af

Browse files
committed
Simplify the predefined styles when possible, and when in ascii range.
1 parent 30cefb4 commit 05544af

2 files changed

Lines changed: 14 additions & 26 deletions

File tree

css3-lists/Overview.html

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525

2626
<h1>CSS Lists and Counters Module Level 3</h1>
2727

28-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 December
28+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 2 December
2929
2011</h2>
3030

3131
<dl>
3232
<dt>This version:
3333

34-
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-lists-20111201">http://www.w3.org/TR/2011/WD-css3-lists-20111201</a></dd>-->
34+
<dd><!--<a href="http://www.w3.org/TR/2011/WD-css3-lists-20111202">http://www.w3.org/TR/2011/WD-css3-lists-20111202</a></dd>-->
3535
<a
3636
href="http://dev.w3.org/csswg/css3-lists/">http://dev.w3.org/csswg/css3-lists/</a>
3737

@@ -2369,31 +2369,27 @@ <h2 id=predefined-counters><span class=secno>10. </span> Predefined Counter
23692369
@counter-style <dfn
23702370
id=decimal>decimal</dfn> {
23712371
type: numeric;
2372-
symbols: '\30' '\31' '\32' '\33' '\34' '\35' '\36' '\37' '\38' '\39';
2373-
/* '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' */
2372+
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
23742373
}
23752374

23762375
@counter-style <dfn
23772376
id=decimal-leading-zero>decimal-leading-zero</dfn> {
23782377
type: non-repeating -9;
2379-
symbols: '\2D\30\39' '\2D\30\38' '\2D\30\37' '\2D\30\36' '\2D\30\35' '\2D\30\34' '\2D\30\33' '\2D\30\32' '\2D\30\31' '\30\30' '\30\31' '\30\32' '\30\33' '\30\34' '\30\35' '\30\36' '\30\37' '\30\38' '\30\39';
2380-
/* '-09' '-08' '-07' '-06' '-05' '-04' '-03' '-02' '-01' '00' '01' '02' '03' '04' '05' '06' '07' '08' '09' */
2378+
symbols: '-09' '-08' '-07' '-06' '-05' '-04' '-03' '-02' '-01' '00' '01' '02' '03' '04' '05' '06' '07' '08' '09';
23812379
}
23822380

23832381
@counter-style <dfn
23842382
id=lower-roman>lower-roman</dfn> {
23852383
type: additive;
23862384
range: 1 4999;
2387-
additive-symbols: 1000 '\6D', 900 '\63\6D', 500 '\64', 400 '\63\64', 100 '\63', 90 '\78\63', 50 '\6C', 40 '\78\6C', 10 '\78', 9 '\69\78', 5 '\76', 4 '\69\76', 1 '\69';
2388-
/* 1000 'm', 900 'cm', 500 'd', 400 'cd', 100 'c', 90 'xc', 50 'l', 40 'xl', 10 'x', 9 'ix', 5 'v', 4 'iv', 1 'i' */
2385+
additive-symbols: 1000 m, 900 cm, 500 d, 400 cd, 100 c, 90 xc, 50 l, 40 xl, 10 x, 9 ix, 5 v, 4 iv, 1 i;
23892386
}
23902387

23912388
@counter-style <dfn
23922389
id=upper-roman>upper-roman</dfn> {
23932390
type: additive;
23942391
range: 1 4999;
2395-
additive-symbols: 1000 '\4D', 900 '\43\4D', 500 '\44', 400 '\43\44', 100 '\43', 90 '\58\43', 50 '\4C', 40 '\58\4C', 10 '\58', 9 '\49\58', 5 '\56', 4 '\49\56', 1 '\49';
2396-
/* 1000 'M', 900 'CM', 500 'D', 400 'CD', 100 'C', 90 'XC', 50 'L', 40 'XL', 10 'X', 9 'IX', 5 'V', 4 'IV', 1 'I' */
2392+
additive-symbols: 1000 M, 900 CM, 500 D, 400 CD, 100 C, 90 XC, 50 L, 40 XL, 10 X, 9 IX, 5 V, 4 IV, 1 I;
23972393
}
23982394

23992395
@counter-style <dfn
@@ -2415,8 +2411,7 @@ <h2 id=predefined-counters><span class=secno>10. </span> Predefined Counter
24152411
@counter-style <dfn
24162412
id=lower-alpha>lower-alpha</dfn> {
24172413
type: alphabetic;
2418-
symbols: '\61' '\62' '\63' '\64' '\65' '\66' '\67' '\68' '\69' '\6A' '\6B' '\6C' '\6D' '\6E' '\6F' '\70' '\71' '\72' '\73' '\74' '\75' '\76' '\77' '\78' '\79' '\7A';
2419-
/* 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z' */
2414+
symbols: a b c d e f g h i j k l m n o p q r s t u v w x y z;
24202415
}
24212416

24222417
@counter-style <dfn
@@ -2427,8 +2422,7 @@ <h2 id=predefined-counters><span class=secno>10. </span> Predefined Counter
24272422
@counter-style <dfn
24282423
id=upper-alpha>upper-alpha</dfn> {
24292424
type: alphabetic;
2430-
symbols: '\41' '\42' '\43' '\44' '\45' '\46' '\47' '\48' '\49' '\4A' '\4B' '\4C' '\4D' '\4E' '\4F' '\50' '\51' '\52' '\53' '\54' '\55' '\56' '\57' '\58' '\59' '\5A';
2431-
/* 'A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I' 'J' 'K' 'L' 'M' 'N' 'O' 'P' 'Q' 'R' 'S' 'T' 'U' 'V' 'W' 'X' 'Y' 'Z' */
2425+
symbols: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z;
24322426
}
24332427

24342428
@counter-style <dfn

css3-lists/Overview.src.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,28 +1601,24 @@ <h2 id='predefined-counters'>
16011601
<pre style="white-space: pre-wrap;"><bdo>
16021602
@counter-style <dfn>decimal</dfn> {
16031603
type: numeric;
1604-
symbols: '\30' '\31' '\32' '\33' '\34' '\35' '\36' '\37' '\38' '\39';
1605-
/* '0' '1' '2' '3' '4' '5' '6' '7' '8' '9' */
1604+
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
16061605
}
16071606

16081607
@counter-style <dfn>decimal-leading-zero</dfn> {
16091608
type: non-repeating -9;
1610-
symbols: '\2D\30\39' '\2D\30\38' '\2D\30\37' '\2D\30\36' '\2D\30\35' '\2D\30\34' '\2D\30\33' '\2D\30\32' '\2D\30\31' '\30\30' '\30\31' '\30\32' '\30\33' '\30\34' '\30\35' '\30\36' '\30\37' '\30\38' '\30\39';
1611-
/* '-09' '-08' '-07' '-06' '-05' '-04' '-03' '-02' '-01' '00' '01' '02' '03' '04' '05' '06' '07' '08' '09' */
1609+
symbols: '-09' '-08' '-07' '-06' '-05' '-04' '-03' '-02' '-01' '00' '01' '02' '03' '04' '05' '06' '07' '08' '09';
16121610
}
16131611

16141612
@counter-style <dfn>lower-roman</dfn> {
16151613
type: additive;
16161614
range: 1 4999;
1617-
additive-symbols: 1000 '\6D', 900 '\63\6D', 500 '\64', 400 '\63\64', 100 '\63', 90 '\78\63', 50 '\6C', 40 '\78\6C', 10 '\78', 9 '\69\78', 5 '\76', 4 '\69\76', 1 '\69';
1618-
/* 1000 'm', 900 'cm', 500 'd', 400 'cd', 100 'c', 90 'xc', 50 'l', 40 'xl', 10 'x', 9 'ix', 5 'v', 4 'iv', 1 'i' */
1615+
additive-symbols: 1000 m, 900 cm, 500 d, 400 cd, 100 c, 90 xc, 50 l, 40 xl, 10 x, 9 ix, 5 v, 4 iv, 1 i;
16191616
}
16201617

16211618
@counter-style <dfn>upper-roman</dfn> {
16221619
type: additive;
16231620
range: 1 4999;
1624-
additive-symbols: 1000 '\4D', 900 '\43\4D', 500 '\44', 400 '\43\44', 100 '\43', 90 '\58\43', 50 '\4C', 40 '\58\4C', 10 '\58', 9 '\49\58', 5 '\56', 4 '\49\56', 1 '\49';
1625-
/* 1000 'M', 900 'CM', 500 'D', 400 'CD', 100 'C', 90 'XC', 50 'L', 40 'XL', 10 'X', 9 'IX', 5 'V', 4 'IV', 1 'I' */
1621+
additive-symbols: 1000 M, 900 CM, 500 D, 400 CD, 100 C, 90 XC, 50 L, 40 XL, 10 X, 9 IX, 5 V, 4 IV, 1 I;
16261622
}
16271623

16281624
@counter-style <dfn>georgian</dfn> {
@@ -1641,8 +1637,7 @@ <h2 id='predefined-counters'>
16411637

16421638
@counter-style <dfn>lower-alpha</dfn> {
16431639
type: alphabetic;
1644-
symbols: '\61' '\62' '\63' '\64' '\65' '\66' '\67' '\68' '\69' '\6A' '\6B' '\6C' '\6D' '\6E' '\6F' '\70' '\71' '\72' '\73' '\74' '\75' '\76' '\77' '\78' '\79' '\7A';
1645-
/* 'a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p' 'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z' */
1640+
symbols: a b c d e f g h i j k l m n o p q r s t u v w x y z;
16461641
}
16471642

16481643
@counter-style <dfn>lower-latin</dfn> {
@@ -1651,8 +1646,7 @@ <h2 id='predefined-counters'>
16511646

16521647
@counter-style <dfn>upper-alpha</dfn> {
16531648
type: alphabetic;
1654-
symbols: '\41' '\42' '\43' '\44' '\45' '\46' '\47' '\48' '\49' '\4A' '\4B' '\4C' '\4D' '\4E' '\4F' '\50' '\51' '\52' '\53' '\54' '\55' '\56' '\57' '\58' '\59' '\5A';
1655-
/* 'A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I' 'J' 'K' 'L' 'M' 'N' 'O' 'P' 'Q' 'R' 'S' 'T' 'U' 'V' 'W' 'X' 'Y' 'Z' */
1649+
symbols: A B C D E F G H I J K L M N O P Q R S T U V W X Y Z;
16561650
}
16571651

16581652
@counter-style <dfn>upper-latin</dfn> {

0 commit comments

Comments
 (0)