summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-counter-styles/counter-style-at-rule/symbols-function.html
blob: 9f129582fff8590b5e5325b057e06692193c4c7e (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
<!DOCTYPE html>
<meta charset="UTF-8">
<title>CSS Test: symbols function</title>
<link rel="author" title="Xidorn Quan" href="https://www.upsuper.org/">
<link rel="help" href="https://drafts.csswg.org/css-counter-styles-3/#symbols-function">
<link rel="match" href="symbols-function-ref.html">
<link rel="stylesheet" href="support/test-common.css">
<style type="text/css">
  .default {
    list-style-type: symbols('*' '\2020' '\2021' '\A7');
  }
  .cyclic {
    list-style-type: symbols(cyclic '*' '\2020' '\2021' '\A7');
  }
  .numeric {
    list-style-type: symbols(numeric '0' '1' '2');
  }
  .alphabetic {
    list-style-type: symbols(alphabetic '\26AA' '\26AB');
  }
  .symbolic {
    list-style-type: symbols(symbolic '*' '\2020' '\2021' '\A7');
  }
  .fixed {
    list-style-type: symbols(fixed '\25F0' '\25F1' '\25F2' '\25F3');
  }
  .counter, .counters {
    list-style-type: none;
    counter-reset: a;
  }
  .counter li, .counters li {
    counter-increment: a;
    padding-right: .5em;
  }
  .counter li::after {
    content: counter(a, symbols('*'));
  }
  .counters .counters li::after {
    content: counters(a, '.', symbols(numeric '0' '1'));
  }
</style>
<ol start="-2" class="default">
  <li><li><li><li><li>
  <li><li><li><li><li>
</ol>
<ol start="-2" class="cyclic">
  <li><li><li><li><li>
  <li><li><li><li><li>
</ol>
<ol start="-2" class="numeric">
  <li><li><li><li><li>
  <li><li><li><li><li>
</ol>
<ol start="-2" class="alphabetic">
  <li><li><li><li><li>
  <li><li><li><li><li>
</ol>
<ol start="-2" class="symbolic">
  <li><li><li><li><li>
  <li><li><li><li><li>
</ol>
<ol start="-2" class="fixed">
  <li><li><li><li><li>
  <li><li><li><li><li>
</ol>
<ol class="counter">
  <li><li><li><li><li>
</ol>
<ol class="counters">
  <li><ol class="counters"><li><li><li><li><li></ol></li>
  <li><ol class="counters"><li><li><li><li><li></ol></li>
</ol>