summaryrefslogtreecommitdiffstats
path: root/layout/reftests/counter-style/name-case-sensitivity-ref.html
blob: 72b1ffde0736c28d887bb8f84beedc2e87a0ac8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<style type="text/css">
  ol, div, p {
    padding: 0; margin: 0;
    line-height: 150%;
  }
  ol {
    list-style-position: inside;
  }
  li, div, p {
    float: left;
  }
  @counter-style decimal-leading-zero {
    system: extends decimal;
    pad: 3 '0';
  }
  @counter-style custom-style {
    system: cyclic;
    symbols: \2023;
  }
</style>

<!-- list-style -->
<ol><li style="list-style: hiragana inside;"></li></ol>
<ol><li style="list-style: decimal-leading-zero inside;"></li></ol>
<ol><li style="list-style: custom-style inside;"></li></ol>
<ol><li style="list-style: decimal inside;"></li></ol>

<!-- list-style-type -->
<ol><li style="list-style-type: hiragana;"></li></ol>
<ol><li style="list-style-type: decimal-leading-zero;"></li></ol>
<ol><li style="list-style-type: custom-style;"></li></ol>
<ol><li style="list-style-type: decimal;"></li></ol>

<!-- counter() -->
<style type="text/css">
  #counter { counter-reset: a 1; }
  #counter-a::before { content: counter(a, hiragana); }
  #counter-b::before { content: counter(a, decimal-leading-zero); }
  #counter-c::before { content: counter(a, custom-style); }
  #counter-d::before { content: counter(a, decimal); }
</style>
<div id="counter">
  <p id="counter-a"></p>
  <p id="counter-b"></p>
  <p id="counter-c"></p>
  <p id="counter-d"></p>
</div>

<!-- counters() -->
<style type="text/css">
  #counters { counter-reset: a 1; }
  #counters-a::before { content: counters(a, '', hiragana); }
  #counters-b::before { content: counters(a, '', decimal-leading-zero); }
  #counters-c::before { content: counters(a, '', custom-style); }
  #counters-d::before { content: counters(a, '', decimal); }
</style>
<div id="counters">
  <p id="counters-a"></p>
  <p id="counters-b"></p>
  <p id="counters-c"></p>
  <p id="counters-d"></p>
</div>

<style type="text/css">
  @counter-style a { system: extends hiragana; }
  @counter-style b { system: extends decimal-leading-zero; }
  @counter-style c { system: extends custom-style; }
  @counter-style d { system: extends decimal; }
</style>
<ol><li style="list-style-type: a;"></li></ol>
<ol><li style="list-style-type: b;"></li></ol>
<ol><li style="list-style-type: c;"></li></ol>
<ol><li style="list-style-type: d;"></li></ol>