name-case-sensitivity.html 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <style type="text/css">
  3. ol, div, p {
  4. padding: 0; margin: 0;
  5. line-height: 150%;
  6. }
  7. ol {
  8. list-style-position: inside;
  9. }
  10. li, div, p {
  11. float: left;
  12. }
  13. @counter-style decimal-leading-zero {
  14. system: extends decimal;
  15. pad: 3 '0';
  16. }
  17. @counter-style custom-style {
  18. system: cyclic;
  19. symbols: \2023;
  20. }
  21. </style>
  22. <!-- list-style -->
  23. <ol><li style="list-style: Hiragana inside;"></li></ol>
  24. <ol><li style="list-style: Decimal-Leading-Zero inside;"></li></ol>
  25. <ol><li style="list-style: custom-style inside;"></li></ol>
  26. <ol><li style="list-style: Custom-Style inside;"></li></ol>
  27. <!-- list-style-type -->
  28. <ol><li style="list-style-type: Hiragana;"></li></ol>
  29. <ol><li style="list-style-type: Decimal-Leading-Zero;"></li></ol>
  30. <ol><li style="list-style-type: custom-style;"></li></ol>
  31. <ol><li style="list-style-type: Custom-Style;"></li></ol>
  32. <!-- counter() -->
  33. <style type="text/css">
  34. #counter { counter-reset: a 1; }
  35. #counter-a::before { content: counter(a, Hiragana); }
  36. #counter-b::before { content: counter(a, Decimal-leading-Zero); }
  37. #counter-c::before { content: counter(a, custom-style); }
  38. #counter-d::before { content: counter(a, Custom-Style); }
  39. </style>
  40. <div id="counter">
  41. <p id="counter-a"></p>
  42. <p id="counter-b"></p>
  43. <p id="counter-c"></p>
  44. <p id="counter-d"></p>
  45. </div>
  46. <!-- counters() -->
  47. <style type="text/css">
  48. #counters { counter-reset: a 1; }
  49. #counters-a::before { content: counters(a, '', Hiragana); }
  50. #counters-b::before { content: counters(a, '', Decimal-leading-Zero); }
  51. #counters-c::before { content: counters(a, '', custom-style); }
  52. #counters-d::before { content: counters(a, '', Custom-Style); }
  53. </style>
  54. <div id="counters">
  55. <p id="counters-a"></p>
  56. <p id="counters-b"></p>
  57. <p id="counters-c"></p>
  58. <p id="counters-d"></p>
  59. </div>
  60. <style type="text/css">
  61. @counter-style a { system: extends HiRaGaNa; }
  62. @counter-style b { system: extends Decimal-leading-ZERO; }
  63. @counter-style c { system: extends custom-style; }
  64. @counter-style d { system: extends Custom-Style; }
  65. </style>
  66. <ol><li style="list-style-type: a;"></li></ol>
  67. <ol><li style="list-style-type: b;"></li></ol>
  68. <ol><li style="list-style-type: c;"></li></ol>
  69. <ol><li style="list-style-type: d;"></li></ol>