counterstyles.css (13359B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /* Defined in CSS Counter Styles Level 3 */ 6 7 /* 6 Simple Predefined Counter Styles */ 8 9 /* 6.1 Numeric */ 10 11 @counter-style decimal-leading-zero { 12 system: extends decimal; 13 pad: 2 "0"; 14 } 15 16 @counter-style arabic-indic { 17 system: numeric; 18 symbols: "\660" "\661" "\662" "\663" "\664" "\665" "\666" "\667" "\668" "\669"; 19 } 20 21 @counter-style armenian { 22 system: additive; 23 range: 1 9999; 24 additive-symbols: 25 9000 "\554", 26 8000 "\553", 27 7000 "\552", 28 6000 "\551", 29 5000 "\550", 30 4000 "\54F", 31 3000 "\54E", 32 2000 "\54D", 33 1000 "\54C", 34 900 "\54B", 35 800 "\54A", 36 700 "\549", 37 600 "\548", 38 500 "\547", 39 400 "\546", 40 300 "\545", 41 200 "\544", 42 100 "\543", 43 90 "\542", 44 80 "\541", 45 70 "\540", 46 60 "\53F", 47 50 "\53E", 48 40 "\53D", 49 30 "\53C", 50 20 "\53B", 51 10 "\53A", 52 9 "\539", 53 8 "\538", 54 7 "\537", 55 6 "\536", 56 5 "\535", 57 4 "\534", 58 3 "\533", 59 2 "\532", 60 1 "\531"; 61 } 62 63 @counter-style upper-armenian { 64 system: additive; 65 range: 1 9999; 66 additive-symbols: 67 9000 "\554", 68 8000 "\553", 69 7000 "\552", 70 6000 "\551", 71 5000 "\550", 72 4000 "\54F", 73 3000 "\54E", 74 2000 "\54D", 75 1000 "\54C", 76 900 "\54B", 77 800 "\54A", 78 700 "\549", 79 600 "\548", 80 500 "\547", 81 400 "\546", 82 300 "\545", 83 200 "\544", 84 100 "\543", 85 90 "\542", 86 80 "\541", 87 70 "\540", 88 60 "\53F", 89 50 "\53E", 90 40 "\53D", 91 30 "\53C", 92 20 "\53B", 93 10 "\53A", 94 9 "\539", 95 8 "\538", 96 7 "\537", 97 6 "\536", 98 5 "\535", 99 4 "\534", 100 3 "\533", 101 2 "\532", 102 1 "\531"; 103 } 104 105 @counter-style lower-armenian { 106 system: additive; 107 range: 1 9999; 108 additive-symbols: 109 9000 "\584", 110 8000 "\583", 111 7000 "\582", 112 6000 "\581", 113 5000 "\580", 114 4000 "\57F", 115 3000 "\57E", 116 2000 "\57D", 117 1000 "\57C", 118 900 "\57B", 119 800 "\57A", 120 700 "\579", 121 600 "\578", 122 500 "\577", 123 400 "\576", 124 300 "\575", 125 200 "\574", 126 100 "\573", 127 90 "\572", 128 80 "\571", 129 70 "\570", 130 60 "\56F", 131 50 "\56E", 132 40 "\56D", 133 30 "\56C", 134 20 "\56B", 135 10 "\56A", 136 9 "\569", 137 8 "\568", 138 7 "\567", 139 6 "\566", 140 5 "\565", 141 4 "\564", 142 3 "\563", 143 2 "\562", 144 1 "\561"; 145 } 146 147 @counter-style bengali { 148 system: numeric; 149 symbols: "\9E6" "\9E7" "\9E8" "\9E9" "\9EA" "\9EB" "\9EC" "\9ED" "\9EE" "\9EF"; 150 } 151 152 @counter-style cambodian { 153 system: extends khmer; 154 } 155 156 @counter-style khmer { 157 system: numeric; 158 symbols: "\17E0" "\17E1" "\17E2" "\17E3" "\17E4" "\17E5" "\17E6" "\17E7" "\17E8" "\17E9"; 159 } 160 161 @counter-style cjk-decimal { 162 system: numeric; 163 range: 0 infinite; 164 symbols: "\3007" "\4E00" "\4E8C" "\4E09" "\56DB" "\4E94" "\516D" "\4E03" "\516B" "\4E5D"; 165 suffix: "\3001"; 166 } 167 168 @counter-style devanagari { 169 system: numeric; 170 symbols: "\966" "\967" "\968" "\969" "\96A" "\96B" "\96C" "\96D" "\96E" "\96F"; 171 } 172 173 @counter-style georgian { 174 system: additive; 175 range: 1 19999; 176 additive-symbols: 177 10000 "\10F5", 178 9000 "\10F0", 179 8000 "\10EF", 180 7000 "\10F4", 181 6000 "\10EE", 182 5000 "\10ED", 183 4000 "\10EC", 184 3000 "\10EB", 185 2000 "\10EA", 186 1000 "\10E9", 187 900 "\10E8", 188 800 "\10E7", 189 700 "\10E6", 190 600 "\10E5", 191 500 "\10E4", 192 400 "\10F3", 193 300 "\10E2", 194 200 "\10E1", 195 100 "\10E0", 196 90 "\10DF", 197 80 "\10DE", 198 70 "\10DD", 199 60 "\10F2", 200 50 "\10DC", 201 40 "\10DB", 202 30 "\10DA", 203 20 "\10D9", 204 10 "\10D8", 205 9 "\10D7", 206 8 "\10F1", 207 7 "\10D6", 208 6 "\10D5", 209 5 "\10D4", 210 4 "\10D3", 211 3 "\10D2", 212 2 "\10D1", 213 1 "\10D0"; 214 } 215 216 @counter-style gujarati { 217 system: numeric; 218 symbols: "\AE6" "\AE7" "\AE8" "\AE9" "\AEA" "\AEB" "\AEC" "\AED" "\AEE" "\AEF"; 219 } 220 221 @counter-style gurmukhi { 222 system: numeric; 223 symbols: "\A66" "\A67" "\A68" "\A69" "\A6A" "\A6B" "\A6C" "\A6D" "\A6E" "\A6F"; 224 } 225 226 /* hebrew is not included because our builtin algorithm can generate a wider 227 * range of number in this style than what the spec defines. */ 228 229 @counter-style kannada { 230 system: numeric; 231 symbols: "\CE6" "\CE7" "\CE8" "\CE9" "\CEA" "\CEB" "\CEC" "\CED" "\CEE" "\CEF"; 232 } 233 234 @counter-style lao { 235 system: numeric; 236 symbols: "\ED0" "\ED1" "\ED2" "\ED3" "\ED4" "\ED5" "\ED6" "\ED7" "\ED8" "\ED9"; 237 } 238 239 @counter-style malayalam { 240 system: numeric; 241 symbols: "\D66" "\D67" "\D68" "\D69" "\D6A" "\D6B" "\D6C" "\D6D" "\D6E" "\D6F"; 242 } 243 244 @counter-style mongolian { 245 system: numeric; 246 symbols: "\1810" "\1811" "\1812" "\1813" "\1814" "\1815" "\1816" "\1817" "\1818" "\1819"; 247 } 248 249 @counter-style myanmar { 250 system: numeric; 251 symbols: "\1040" "\1041" "\1042" "\1043" "\1044" "\1045" "\1046" "\1047" "\1048" "\1049"; 252 } 253 254 @counter-style oriya { 255 system: numeric; 256 symbols: "\B66" "\B67" "\B68" "\B69" "\B6A" "\B6B" "\B6C" "\B6D" "\B6E" "\B6F"; 257 } 258 259 @counter-style persian { 260 system: numeric; 261 symbols: "\6F0" "\6F1" "\6F2" "\6F3" "\6F4" "\6F5" "\6F6" "\6F7" "\6F8" "\6F9"; 262 } 263 264 @counter-style lower-roman { 265 system: additive; 266 range: 1 3999; 267 additive-symbols: 268 1000 "m", 269 900 "cm", 270 500 "d", 271 400 "cd", 272 100 "c", 273 90 "xc", 274 50 "l", 275 40 "xl", 276 10 "x", 277 9 "ix", 278 5 "v", 279 4 "iv", 280 1 "i"; 281 } 282 283 @counter-style upper-roman { 284 system: additive; 285 range: 1 3999; 286 additive-symbols: 287 1000 "M", 288 900 "CM", 289 500 "D", 290 400 "CD", 291 100 "C", 292 90 "XC", 293 50 "L", 294 40 "XL", 295 10 "X", 296 9 "IX", 297 5 "V", 298 4 "IV", 299 1 "I"; 300 } 301 302 @counter-style tamil { 303 system: numeric; 304 symbols: "\BE6" "\BE7" "\BE8" "\BE9" "\BEA" "\BEB" "\BEC" "\BED" "\BEE" "\BEF"; 305 } 306 307 @counter-style telugu { 308 system: numeric; 309 symbols: "\C66" "\C67" "\C68" "\C69" "\C6A" "\C6B" "\C6C" "\C6D" "\C6E" "\C6F"; 310 } 311 312 @counter-style thai { 313 system: numeric; 314 symbols: "\E50" "\E51" "\E52" "\E53" "\E54" "\E55" "\E56" "\E57" "\E58" "\E59"; 315 } 316 317 @counter-style tibetan { 318 system: numeric; 319 symbols: "\F20" "\F21" "\F22" "\F23" "\F24" "\F25" "\F26" "\F27" "\F28" "\F29"; 320 } 321 322 /* 6.2 Alphabetic */ 323 324 @counter-style lower-alpha { 325 system: alphabetic; 326 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"; 327 } 328 329 @counter-style lower-latin { 330 system: extends lower-alpha; 331 } 332 333 @counter-style upper-alpha { 334 system: alphabetic; 335 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"; 336 } 337 338 @counter-style upper-latin { 339 system: extends upper-alpha; 340 } 341 342 @counter-style cjk-heavenly-stem { 343 system: fixed; 344 symbols: "\7532" "\4E59" "\4E19" "\4E01" "\620A" "\5DF1" "\5E9A" "\8F9B" "\58EC" "\7678"; 345 fallback: cjk-decimal; 346 suffix: "\3001"; 347 } 348 349 @counter-style cjk-earthly-branch { 350 system: fixed; 351 symbols: "\5B50" "\4E11" "\5BC5" "\536F" "\8FB0" "\5DF3" "\5348" "\672A" "\7533" "\9149" "\620C" "\4EA5"; 352 fallback: cjk-decimal; 353 suffix: "\3001"; 354 } 355 356 @counter-style lower-greek { 357 system: alphabetic; 358 symbols: "\3B1" "\3B2" "\3B3" "\3B4" "\3B5" "\3B6" "\3B7" "\3B8" "\3B9" "\3BA" "\3BB" "\3BC" "\3BD" "\3BE" "\3BF" "\3C0" "\3C1" "\3C3" "\3C4" "\3C5" "\3C6" 359 "\3C7" "\3C8" "\3C9"; 360 } 361 362 @counter-style hiragana { 363 system: alphabetic; 364 symbols: "\3042" "\3044" "\3046" "\3048" "\304A" "\304B" "\304D" "\304F" "\3051" "\3053" "\3055" "\3057" "\3059" "\305B" "\305D" "\305F" "\3061" "\3064" 365 "\3066" "\3068" "\306A" "\306B" "\306C" "\306D" "\306E" "\306F" "\3072" "\3075" "\3078" "\307B" "\307E" "\307F" "\3080" "\3081" "\3082" "\3084" "\3086" 366 "\3088" "\3089" "\308A" "\308B" "\308C" "\308D" "\308F" "\3090" "\3091" "\3092" "\3093"; 367 suffix: "\3001"; 368 } 369 370 @counter-style hiragana-iroha { 371 system: alphabetic; 372 symbols: "\3044" "\308D" "\306F" "\306B" "\307B" "\3078" "\3068" "\3061" "\308A" "\306C" "\308B" "\3092" "\308F" "\304B" "\3088" "\305F" "\308C" "\305D" 373 "\3064" "\306D" "\306A" "\3089" "\3080" "\3046" "\3090" "\306E" "\304A" "\304F" "\3084" "\307E" "\3051" "\3075" "\3053" "\3048" "\3066" "\3042" "\3055" 374 "\304D" "\3086" "\3081" "\307F" "\3057" "\3091" "\3072" "\3082" "\305B" "\3059"; 375 suffix: "\3001"; 376 } 377 378 @counter-style katakana { 379 system: alphabetic; 380 symbols: "\30A2" "\30A4" "\30A6" "\30A8" "\30AA" "\30AB" "\30AD" "\30AF" "\30B1" "\30B3" "\30B5" "\30B7" "\30B9" "\30BB" "\30BD" "\30BF" "\30C1" "\30C4" 381 "\30C6" "\30C8" "\30CA" "\30CB" "\30CC" "\30CD" "\30CE" "\30CF" "\30D2" "\30D5" "\30D8" "\30DB" "\30DE" "\30DF" "\30E0" "\30E1" "\30E2" "\30E4" "\30E6" 382 "\30E8" "\30E9" "\30EA" "\30EB" "\30EC" "\30ED" "\30EF" "\30F0" "\30F1" "\30F2" "\30F3"; 383 suffix: "\3001"; 384 } 385 386 @counter-style katakana-iroha { 387 system: alphabetic; 388 symbols: "\30A4" "\30ED" "\30CF" "\30CB" "\30DB" "\30D8" "\30C8" "\30C1" "\30EA" "\30CC" "\30EB" "\30F2" "\30EF" "\30AB" "\30E8" "\30BF" "\30EC" "\30BD" 389 "\30C4" "\30CD" "\30CA" "\30E9" "\30E0" "\30A6" "\30F0" "\30CE" "\30AA" "\30AF" "\30E4" "\30DE" "\30B1" "\30D5" "\30B3" "\30A8" "\30C6" "\30A2" "\30B5" 390 "\30AD" "\30E6" "\30E1" "\30DF" "\30B7" "\30F1" "\30D2" "\30E2" "\30BB" "\30B9"; 391 suffix: "\3001"; 392 } 393 394 /* 6.3 Symbolic */ 395 396 /* symbolic counter styles are not included because they will be drew directly 397 * by the program instead of use alternative symbols defined in the spec */ 398 399 /* 7 Complex Predefined Counter Styles */ 400 401 /* only alias is included as other complex counter styles will be generated by 402 * specific algorithms to support the extended range. */ 403 404 @counter-style cjk-ideographic { 405 system: extends trad-chinese-informal; 406 } 407 408 /* Mozilla-specific counter styles */ 409 410 /* Numeric */ 411 412 @counter-style -moz-arabic-indic { 413 system: extends arabic-indic; 414 } 415 416 @counter-style -moz-persian { 417 system: extends persian; 418 } 419 420 @counter-style -moz-urdu { 421 system: extends persian; 422 } 423 424 @counter-style -moz-devanagari { 425 system: extends devanagari; 426 } 427 428 @counter-style -moz-bengali { 429 system: extends bengali; 430 } 431 432 @counter-style -moz-gurmukhi { 433 system: extends gurmukhi; 434 } 435 436 @counter-style -moz-gujarati { 437 system: extends gujarati; 438 } 439 440 @counter-style -moz-oriya { 441 system: extends oriya; 442 } 443 444 @counter-style -moz-tamil { 445 system: extends tamil; 446 } 447 448 @counter-style -moz-telugu { 449 system: extends telugu; 450 } 451 452 @counter-style -moz-kannada { 453 system: extends kannada; 454 } 455 456 @counter-style -moz-malayalam { 457 system: extends malayalam; 458 } 459 460 @counter-style -moz-thai { 461 system: extends thai; 462 } 463 464 @counter-style -moz-lao { 465 system: extends lao; 466 } 467 468 @counter-style -moz-myanmar { 469 system: extends myanmar; 470 } 471 472 @counter-style -moz-khmer { 473 system: extends khmer; 474 } 475 476 /* Alphabetic */ 477 478 @counter-style -moz-cjk-heavenly-stem { 479 system: extends cjk-heavenly-stem; 480 } 481 @counter-style -moz-cjk-earthly-branch { 482 system: extends cjk-earthly-branch; 483 } 484 485 @counter-style -moz-hangul { 486 system: alphabetic; 487 symbols: "\AC00" "\B098" "\B2E4" "\B77C" "\B9C8" "\BC14" "\C0AC" "\C544" "\C790" "\CC28" "\CE74" "\D0C0" "\D30C" "\D558"; 488 suffix: ","; 489 } 490 @counter-style -moz-hangul-consonant { 491 system: alphabetic; 492 symbols: "\3131" "\3134" "\3137" "\3139" "\3141" "\3142" "\3145" "\3147" "\3148" "\314A" "\314B" "\314C" "\314D" "\314E"; 493 suffix: ","; 494 } 495 496 /* Ge'ez set of Ethiopic ordered list. There are other locale-dependent sets. 497 * For the time being, let's implement two Ge'ez sets only 498 * per Momoi san's suggestion in bug 102252. 499 * For details, refer to http://www.ethiopic.org/Collation/OrderedLists.html. */ 500 @counter-style -moz-ethiopic-halehame { 501 system: alphabetic; 502 symbols: "\1200" "\1208" "\1210" "\1218" "\1220" "\1228" "\1230" "\1240" "\1260" "\1270" "\1280" "\1290" "\12A0" "\12A8" "\12C8" "\12D0" "\12D8" "\12E8" 503 "\12F0" "\1308" "\1320" "\1330" "\1338" "\1340" "\1348" "\1350"; 504 } 505 @counter-style -moz-ethiopic-halehame-am { 506 system: alphabetic; 507 symbols: "\1200" "\1208" "\1210" "\1218" "\1220" "\1228" "\1230" "\1238" "\1240" "\1260" "\1270" "\1278" "\1280" "\1290" "\1298" "\12A0" "\12A8" "\12B8" 508 "\12C8" "\12D0" "\12D8" "\12E0" "\12E8" "\12F0" "\1300" "\1308" "\1320" "\1328" "\1330" "\1338" "\1340" "\1348" "\1350"; 509 } 510 @counter-style -moz-ethiopic-halehame-ti-er { 511 system: alphabetic; 512 symbols: "\1200" "\1208" "\1210" "\1218" "\1228" "\1230" "\1238" "\1240" "\1250" "\1260" "\1270" "\1278" "\1290" "\1298" "\12A0" "\12A8" "\12B8" "\12C8" 513 "\12D0" "\12D8" "\12E0" "\12E8" "\12F0" "\1300" "\1308" "\1320" "\1328" "\1330" "\1338" "\1348" "\1350"; 514 } 515 @counter-style -moz-ethiopic-halehame-ti-et { 516 system: alphabetic; 517 symbols: "\1200" "\1208" "\1210" "\1218" "\1220" "\1228" "\1230" "\1238" "\1240" "\1250" "\1260" "\1270" "\1278" "\1280" "\1290" "\1298" "\12A0" "\12A8" 518 "\12B8" "\12C8" "\12D0" "\12D8" "\12E0" "\12E8" "\12F0" "\1300" "\1308" "\1320" "\1328" "\1330" "\1338" "\1340" "\1348" "\1350"; 519 } 520 521 /* Alias */ 522 523 @counter-style -moz-trad-chinese-informal { 524 system: extends trad-chinese-informal; 525 } 526 527 @counter-style -moz-trad-chinese-formal { 528 system: extends trad-chinese-formal; 529 } 530 531 @counter-style -moz-simp-chinese-informal { 532 system: extends simp-chinese-informal; 533 } 534 535 @counter-style -moz-simp-chinese-formal { 536 system: extends simp-chinese-formal; 537 } 538 539 @counter-style -moz-japanese-informal { 540 system: extends japanese-informal; 541 } 542 543 @counter-style -moz-japanese-formal { 544 system: extends japanese-formal; 545 } 546 547 @counter-style -moz-ethiopic-numeric { 548 system: extends ethiopic-numeric; 549 }