@@ -1398,68 +1398,106 @@ <h3 id=simple-numeric><span class=secno>5.1. </span> Numeric: ‘<a
1398
1398
href ="#georgian "> < code class =css > georgian</ code > </ a > ’, ‘< a
1399
1399
href ="#hebrew "> < code class =css > hebrew</ code > </ a > ’</ h3 >
1400
1400
1401
+ < dl >
1402
+ < dt > < dfn id =decimal > ‘< code class =css > decimal</ code > ’</ dfn >
1403
+
1404
+ < dd > Western decimal numbers (e.g., 1, 2, 3, ..., 98, 99, 100).
1405
+
1406
+ < dt > < dfn id =decimal-leading-zero > ‘< code
1407
+ class =css > decimal-leading-zero</ code > ’</ dfn >
1408
+
1409
+ < dd > Decimal numbers padded by initial zeros (e.g., 01, 02, 03, ..., 98,
1410
+ 99, 100).
1411
+
1412
+ < dt > < dfn id =cjk-decimal > ‘< code class =css > cjk-decimal</ code > ’</ dfn >
1413
+
1414
+ < dd > Han decimal numbers (e.g., 一, 二, 三, ..., 九八, 九九,
1415
+ 一〇〇).
1416
+
1417
+ < dt > < dfn id =lower-roman > ‘< code class =css > lower-roman</ code > ’</ dfn >
1418
+
1419
+ < dd > Lowercase ASCII Roman numerals (e.g., i, ii, iii, ..., xcviii, xcix,
1420
+ c).
1421
+
1422
+ < dt > < dfn id =upper-roman > ‘< code class =css > upper-roman</ code > ’</ dfn >
1423
+
1424
+ < dd > Uppercase ASCII Roman numerals (e.g., I, II, III, ..., XCVIII, XCIX,
1425
+ C).
1426
+
1427
+ < dt > < dfn id =armenian > ‘< code class =css > armenian</ code > ’</ dfn >
1428
+
1429
+ < dd > Traditional uppercase Armenian numbering (e.g., Ա, Բ, Գ, ...,
1430
+ ՂԸ, ՂԹ, Ճ).
1431
+
1432
+ < dt > < dfn id =georgian > ‘< code class =css > georgian</ code > ’</ dfn >
1433
+
1434
+ < dd > Traditional Georgian numbering (e.g., ა, ბ, გ, ..., ჟჱ,
1435
+ ჟთ, რ).
1436
+
1437
+ < dt > < dfn id =hebrew > ‘< code class =css > hebrew</ code > ’</ dfn >
1438
+
1439
+ < dd > Traditional Hebrew numbering (e.g., א, ב, ג, ...,
1440
+ צח, צט, ק).
1441
+ </ dl >
1442
+
1443
+ < p > The ‘< a href ="#decimal "> < code class =css > decimal</ code > </ a > ’
1444
+ counter-style must not be overridable with a @counter-style rule, so that
1445
+ it is always available as an ultimate fallback style.
1446
+
1447
+ < p > The following stylesheet fragment provides the normative definition of
1448
+ these predefined counter styles:
1449
+
1401
1450
< pre class =stylesheet > < bdo >
1402
- @counter-style < dfn id = decimal > decimal </ dfn > {
1451
+ @counter-style decimal {
1403
1452
type: numeric;
1404
1453
symbols: '0' '1' '2' '3' '4' '5' '6' '7' '8' '9';
1405
1454
}
1406
1455
1407
- @counter-style < dfn
1408
- id =decimal-leading-zero > decimal-leading-zero</ dfn > {
1456
+ @counter-style decimal-leading-zero {
1409
1457
type: fixed -9;
1410
1458
symbols: '-09' '-08' '-07' '-06' '-05' '-04' '-03' '-02' '-01' '00' '01' '02' '03' '04' '05' '06' '07' '08' '09';
1411
1459
}
1412
1460
1413
- @counter-style < dfn
1414
- id =cjk-decimal > cjk-decimal</ dfn > {
1461
+ @counter-style cjk-decimal {
1415
1462
type: numeric;
1416
1463
symbols: \3007 \4E00 \4E8C \4E09 \56DB \4E94 \516D \4E03 \516B \4E5D;
1417
1464
/* 〇 一 二 三 四 五 六 七 八 九 */
1418
1465
}
1419
1466
1420
- @counter-style < dfn
1421
- id =lower-roman > lower-roman</ dfn > {
1467
+ @counter-style lower-roman {
1422
1468
type: additive;
1423
1469
range: 1 4999;
1424
1470
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;
1425
1471
}
1426
1472
1427
- @counter-style < dfn
1428
- id =upper-roman > upper-roman</ dfn > {
1473
+ @counter-style upper-roman {
1429
1474
type: additive;
1430
1475
range: 1 4999;
1431
1476
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;
1432
1477
}
1433
1478
1434
- @counter-style < dfn
1435
- id =armenian > armenian</ dfn > {
1479
+ @counter-style armenian {
1436
1480
type: additive;
1437
1481
range: 1 9999;
1438
1482
additive-symbols: 9000 \554, 8000 \553, 7000 \552, 6000 \551, 5000 \550, 4000 \54F, 3000 \54E, 2000 \54D, 1000 \54C, 900 \54B, 800 \54A, 700 \549, 600 \548, 500 \547, 400 \546, 300 \545, 200 \544, 100 \543, 90 \542, 80 \541, 70 \540, 60 \53F, 50 \53E, 40 \53D, 30 \53C, 20 \53B, 10 \53A, 9 \539, 8 \538, 7 \537, 6 \536, 5 \535, 4 \534, 3 \533, 2 \532, 1 \531;
1439
1483
/* 9000 Ք, 8000 Փ, 7000 Ւ, 6000 Ց, 5000 Ր, 4000 Տ, 3000 Վ, 2000 Ս, 1000 Ռ, 900 Ջ, 800 Պ, 700 Չ, 600 Ո, 500 Շ, 400 Ն, 300 Յ, 200 Մ, 100 Ճ, 90 Ղ, 80 Ձ, 70 Հ, 60 Կ, 50 Ծ, 40 Խ, 30 Լ, 20 Ի, 10 Ժ, 9 Թ, 8 Ը, 7 Է, 6 Զ, 5 Ե, 4 Դ, 3 Գ, 2 Բ, 1 Ա */
1440
1484
}
1441
1485
1442
- @counter-style < dfn
1443
- id =georgian > georgian</ dfn > {
1486
+ @counter-style georgian {
1444
1487
type: additive;
1445
1488
range: 1 19999;
1446
1489
additive-symbols: 10000 \10F5, 9000 \10F0, 8000 \10EF, 7000 \10F4, 6000 \10EE, 5000 \10ED, 4000 \10EC, 3000 \10EB, 2000 \10EA, 1000 \10E9, 900 \10E8, 800 \10E7, 700 \10E6, 600 \10E5, 500 \10E4, 400 \10F3, 300 \10E2, 200 \10E1, 100 \10E0, 90 \10DF, 80 \10DE, 70 \10DD, 60 \10F2, 50 \10DC, 40 \10DB, 30 \10DA, 20 \10D9, 10 \10D8, 9 \10D7, 8 \10F1, 7 \10D6, 6 \10D5, 5 \10D4, 4 \10D3, 3 \10D2, 2 \10D1, 1 \10D0;
1447
1490
/* 10000 ჵ, 9000 ჰ, 8000 ჯ, 7000 ჴ, 6000 ხ, 5000 ჭ, 4000 წ, 3000 ძ, 2000 ც, 1000 ჩ, 900 შ, 800 ყ, 700 ღ, 600 ქ, 500 ფ, 400 ჳ, 300 ტ, 200 ს, 100 რ, 90 ჟ, 80 პ, 70 ო, 60 ჲ, 50 ნ, 40 მ, 30 ლ, 20 კ, 10 ი, 9 თ, 8 ჱ, 7 ზ, 6 ვ, 5 ე, 4 დ, 3 გ, 2 ბ, 1 ა */
1448
1491
}
1449
1492
1450
- @counter-style < dfn
1451
- id =hebrew > hebrew</ dfn > {
1493
+ @counter-style hebrew {
1452
1494
type: additive;
1453
1495
range: 1 infinite;
1454
1496
additive-symbols: 400 \5EA, 300 \5E9, 200 \5E8, 100 \5E7, 90 \5E6, 80 \5E4, 70 \5E2, 60 \5E1, 50 \5E0, 40 \5DE, 30 \5DC, 20 \5DB, 19 \5D9\5D8, 18 \5D9\5D7, 17 \5D9\5D6, 16 \5D8\5D6, 15 \5D8\5D5, 10 \5D9, 9 \5D8, 8 \5D7, 7 \5D6, 6 \5D5, 5 \5D4, 4 \5D3, 3 \5D2, 2 \5D1, 1 \5D0;
1455
1497
/* 400 ת, 300 ש, 200 ר, 100 ק, 90 צ, 80 פ, 70 ע, 60 ס, 50 נ, 40 מ, 30 ל, 20 כ, 19 יט, 18 יח, 17 יז, 16 טז, 15 טו, 10 י, 9 ט, 8 ח, 7 ז, 6 ו, 5 ה, 4 ד, 3 ג, 2 ב, 1 א */
1456
1498
/* This system manually specifies the values for 19-15 to force the correct display of 15 and 16, which are commonly rewritten to avoid a close resemblance to the Tetragrammaton. */
1457
1499
}</ bdo > </ pre >
1458
1500
1459
- < p > The ‘< a href ="#decimal "> < code class =css > decimal</ code > </ a > ’
1460
- counter-style must not be overridable with a @counter-style rule, so that
1461
- it is always available as an ultimate fallback style.
1462
-
1463
1501
< h3 id =simple-alphabetic > < span class =secno > 5.2. </ span > Alphabetic: ‘< a
1464
1502
href ="#lower-alpha "> < code class =css > lower-alpha</ code > </ a > ’, ‘< a
1465
1503
href ="#lower-latin "> < code class =css > lower-latin</ code > </ a > ’, ‘< a
@@ -1471,62 +1509,96 @@ <h3 id=simple-alphabetic><span class=secno>5.2. </span> Alphabetic: ‘<a
1471
1509
href ="#katakana "> < code class =css > katakana</ code > </ a > ’, ‘< a
1472
1510
href ="#katakana-iroha "> < code class =css > katakana-iroha</ code > </ a > ’</ h3 >
1473
1511
1512
+ < dl >
1513
+ < dt > < dfn id =lower-alpha > ‘< code class =css > lower-alpha</ code > ’</ dfn >
1514
+
1515
+ < dt > < dfn id =lower-latin > ‘< code class =css > lower-latin</ code > ’</ dfn >
1516
+
1517
+ < dd > Lowercase ASCII letters (e.g., a, b, c, ..., z, aa, ab).
1518
+
1519
+ < dt > < dfn id =upper-alpha > ‘< code class =css > upper-alpha</ code > ’</ dfn >
1520
+
1521
+ < dt > < dfn id =upper-latin > ‘< code class =css > upper-latin</ code > ’</ dfn >
1522
+
1523
+ < dd > Uppercase ASCII letters (e.g., A, B, C, ..., Z, AA, AB).
1524
+
1525
+ < dt > < dfn id =lower-greek > ‘< code class =css > lower-greek</ code > ’</ dfn >
1526
+
1527
+ < dd > Lowercase classical Greek (e.g., α, β, γ, ..., ω, αα, αβ).
1528
+
1529
+ < dt > < dfn id =hiragana > ‘< code class =css > hiragana</ code > ’</ dfn >
1530
+
1531
+ < dd > Dictionary-order hiragana lettering (e.g., あ, い, う, ..., ん,
1532
+ ああ, あい).
1533
+
1534
+ < dt > < dfn id =hiragana-iroha > ‘< code
1535
+ class =css > hiragana-iroha</ code > ’</ dfn >
1536
+
1537
+ < dd > Iroha-order hiragana lettering (e.g., い, ろ, は, ..., ん,
1538
+ いい, いろ).
1539
+
1540
+ < dt > < dfn id =katakana > ‘< code class =css > katakana</ code > ’</ dfn >
1541
+
1542
+ < dd > Dictionary-order katakana lettering (e.g., ア, イ, ウ, ..., ン,
1543
+ アア, アイ).
1544
+
1545
+ < dt > < dfn id =katakana-iroha > ‘< code
1546
+ class =css > katakana-iroha</ code > ’</ dfn >
1547
+
1548
+ < dd > Iroha-order katakana lettering (e.g., イ, ロ, ハ, ..., ン,
1549
+ イイ, イロ)
1550
+ </ dl >
1551
+
1552
+ < p > The following stylesheet fragment provides the normative definition of
1553
+ these predefined counter styles:
1554
+
1474
1555
< pre class =stylesheet > < bdo >
1475
- @counter-style < dfn
1476
- id =lower-alpha > lower-alpha</ dfn > {
1556
+ @counter-style lower-alpha {
1477
1557
type: alphabetic;
1478
1558
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;
1479
1559
}
1480
1560
1481
- @counter-style < dfn
1482
- id =lower-latin > lower-latin</ dfn > {
1561
+ @counter-style lower-latin {
1483
1562
type: override lower-alpha;
1484
1563
}
1485
1564
1486
- @counter-style < dfn
1487
- id =upper-alpha > upper-alpha</ dfn > {
1565
+ @counter-style upper-alpha {
1488
1566
type: alphabetic;
1489
1567
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;
1490
1568
}
1491
1569
1492
- @counter-style < dfn
1493
- id =upper-latin > upper-latin</ dfn > {
1570
+ @counter-style upper-latin {
1494
1571
type: override upper-alpha;
1495
1572
}
1496
1573
1497
- @counter-style < dfn
1498
- id =lower-greek > lower-greek</ dfn > {
1574
+ @counter-style lower-greek {
1499
1575
type: alphabetic;
1500
1576
symbols: \3B1 \3B2 \3B3 \3B4 \3B5 \3B6 \3B7 \3B8 \3B9 \3BA \3BB \3BC \3BD \3BE \3BF \3C0 \3C1 \3C3 \3C4 \3C5 \3C6 \3C7 \3C8 \3C9;
1501
1577
/* α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ σ τ υ φ χ ψ ω */
1502
1578
}
1503
1579
1504
- @counter-style < dfn
1505
- id =hiragana > hiragana</ dfn > {
1580
+ @counter-style hiragana {
1506
1581
type: alphabetic;
1507
1582
symbols: \3042 \3044 \3046 \3048 \304A \304B \304D \304F \3051 \3053 \3055 \3057 \3059 \305B \305D \305F \3061 \3064 \3066 \3068 \306A \306B \306C \306D \306E \306F \3072 \3075 \3078 \307B \307E \307F \3080 \3081 \3082 \3084 \3086 \3088 \3089 \308A \308B \308C \308D \308F \3092 \3093;
1508
1583
/* あ い う え お か き く け こ さ し す せ そ た ち つ て と な に ぬ ね の は ひ ふ へ ほ ま み む め も や ゆ よ ら り る れ ろ わ を ん */
1509
- suffix: 、 ;
1584
+ suffix: '、' ;
1510
1585
}
1511
1586
1512
- @counter-style < dfn
1513
- id =hiragana-iroha > hiragana-iroha</ dfn > {
1587
+ @counter-style hiragana-iroha {
1514
1588
type: alphabetic;
1515
1589
symbols: \3044 \308D \306F \306B \307B \3078 \3068 \3061 \308A \306C \308B \3092 \308F \304B \3088 \305F \308C \305D \3064 \306D \306A \3089 \3080 \3046 \3090 \306E \304A \304F \3084 \307E \3051 \3075 \3053 \3048 \3066 \3042 \3055 \304D \3086 \3081 \307F \3057 \3091 \3072 \3082 \305B \3059 \3093;
1516
1590
/* い ろ は に ほ へ と ち り ぬ る を わ か よ た れ そ つ ね な ら む う ゐ の お く や ま け ふ こ え て あ さ き ゆ め み し ゑ ひ も せ す ん */
1517
- suffix: 、 ;
1591
+ suffix: '、' ;
1518
1592
}
1519
1593
1520
- @counter-style < dfn
1521
- id =katakana > katakana</ dfn > {
1594
+ @counter-style katakana {
1522
1595
type: alphabetic;
1523
1596
symbols: \30A2 \30A4 \30A6 \30A8 \30AA \30AB \30AD \30AF \30B1 \30B3 \30B5 \30B7 \30B9 \30BB \30BD \30BF \30C1 \30C4 \30C6 \30C8 \30CA \30CB \30CC \30CD \30CE \30CF \30D2 \30D5 \30D8 \30DB \30DE \30DF \30E0 \30E1 \30E2 \30E4 \30E6 \30E8 \30E9 \30EA \30EB \30EC \30ED \30EF \30F2 \30F3;
1524
1597
/* ア イ ウ エ オ カ キ ク ケ コ サ シ ス セ ソ タ チ ツ テ ト ナ ニ ヌ ネ ノ ハ ヒ フ ヘ ホ マ ミ ム メ モ ヤ ユ ヨ ラ リ ル レ ロ ワ ヲ ン */
1525
- suffix: 、 ;
1598
+ suffix: '、' ;
1526
1599
}
1527
1600
1528
- @counter-style < dfn
1529
- id =katakana-iroha > katakana-iroha</ dfn > {
1601
+ @counter-style katakana-iroha {
1530
1602
type: alphabetic;
1531
1603
symbols: \30A4 \30ED \30CF \30CB \30DB \30D8 \30C8 \30C1 \30EA \30CC \30EB \30F2 \30EF \30AB \30E8 \30BF \30EC \30BD \30C4 \30CD \30CA \30E9 \30E0 \30A6 \30F0 \30CE \30AA \30AF \30E4 \30DE \30B1 \30D5 \30B3 \30A8 \30C6 \30A2 \30B5 \30AD \30E6 \30E1 \30DF \30B7 \30F1 \30D2 \30E2 \30BB \30B9 \30F3;
1532
1604
/* イ ロ ハ ニ ホ ヘ ト チ リ ヌ ル ヲ ワ カ ヨ タ レ ソ ツ ネ ナ ラ ム ウ ヰ ノ オ ク ヤ マ ケ フ コ エ テ ア サ キ ユ メ ミ シ ヱ ヒ モ セ ス ン */
@@ -1538,36 +1610,37 @@ <h3 id=simple-symbolic><span class=secno>5.3. </span> Symbolic: ‘<a
1538
1610
href ="#circle "> < code class =css > circle</ code > </ a > ’, ‘< a
1539
1611
href ="#square "> < code class =css > square</ code > </ a > ’</ h3 >
1540
1612
1541
- < p > In addition to the above styles, UAs must define three counter styles
1542
- named ‘< a href ="#disc "> < code class =css > disc</ code > </ a > ’, ‘< a
1543
- href ="#circle "> < code class =css > circle</ code > </ a > ’, and ‘< a
1544
- href ="#square "> < code class =css > square</ code > </ a > ’. They must do so
1545
- either by including the following stylesheet in their UA stylesheet, or by
1546
- rendering the bullets with a browser-generated image matching the
1547
- descriptions below the stylesheet.
1548
-
1549
- < p > If a browser chooses to render these counter styles by generating
1550
- images, the images must be sized to attractively fill a 1em by 1em
1551
- rectangle. As well, the styles must still be overrideable by a later ‘< a
1552
- href ="#at-counter-style "> < code class =css > @counter-style</ code > </ a > ’ rule
1553
- defining a counter style of the same name, as if they were defined by a
1554
- ‘< a href ="#at-counter-style "> < code
1555
- class =css > @counter-style</ code > </ a > ’ rule in the UA stylesheet.
1613
+ < dl >
1614
+ < dt > disc
1615
+
1616
+ < dd > A filled circle, similar to • U+2022 BULLET.
1617
+
1618
+ < dt > circle
1619
+
1620
+ < dd > A hollow circle, similar to ◦ U+25E6 WHITE BULLET.
1621
+
1622
+ < dt > square
1623
+
1624
+ < dd > A filled square, similar to ◾ U+25FE BLACK MEDIUM SMALL SQUARE.
1625
+ </ dl >
1626
+
1627
+ < p > The following stylesheet fragment provides the normative definition of
1628
+ these predefined counter styles:
1556
1629
1557
1630
< pre class =stylesheet >
1558
1631
@counter-style < dfn id =disc > disc</ dfn > {
1559
1632
type: cyclic;
1560
1633
symbols: \2022;
1561
1634
/* • */
1562
- suffix: ;
1635
+ suffix: '' ;
1563
1636
}
1564
1637
1565
1638
@counter-style < dfn
1566
1639
id =circle > circle</ dfn > {
1567
1640
type: cyclic;
1568
1641
symbols: \25E6;
1569
1642
/* ◦ */
1570
- suffix: ;
1643
+ suffix: '' ;
1571
1644
}
1572
1645
1573
1646
@counter-style < dfn
@@ -1578,20 +1651,11 @@ <h3 id=simple-symbolic><span class=secno>5.3. </span> Symbolic: ‘<a
1578
1651
suffix: '';
1579
1652
}</ pre >
1580
1653
1581
- < dl >
1582
- < dt > disc
1583
-
1584
- < dd > A filled circle, similar to • U+2022 BULLET.
1585
-
1586
- < dt > circle
1587
-
1588
- < dd > A hollow circle, similar to ◦ U+25E6 WHITE BULLET.
1589
-
1590
- < dt > square
1591
-
1592
- < dd > A filled square, similar to ◾ U+25FE BLACK MEDIUM SMALL SQUARE.
1593
- </ dl >
1594
- <!-- ======================================================================= -->
1654
+ < p > Alternately, a browser may render these styles using a
1655
+ browser-generated image instead of the defined character. If so, the image
1656
+ must look similar to the character, and must be sized to attractively fill
1657
+ a 1em by 1em square.
1658
+ <!-- ======================================================================= -->
1595
1659
1596
1660
< h2 id =complex-predefined-counters > < span class =secno > 6. </ span > Complex
1597
1661
Predefined Counter Styles</ h2 >
0 commit comments