summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-counter-styles/counter-style-at-rule/speak-as-manual.html
blob: 50f35ec1426ebbef450809019b7724be8962c3ec (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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<!doctype html>
<title>CSS counter style accessibility test</title>
<link rel="help" href="https://drafts.csswg.org/css-counter-styles/#counter-style-speak-as">
<link rel="author" href="mailto:xiaochengh@chromium.org">
<p>
  This is a manual test. To run the tests, open the browser's developer tools
  and navigate to the Accessibility pane (may need to activate it in Settings),
  or use an OS-level accessibility inspector, and verify that the accessible
  name of the list markers matches the text in the list items (excluding
  quotation marks).

  <br><br>

  The following issue discusses ways to automate these tests:

  <br><br>

  https://github.com/web-platform-tests/wpt/issues/8355
</p>
<style>
  @counter-style base {
    system: cyclic;
    symbols: 'One' 'Two' 'Three';
    suffix: '. ';
  }

  @counter-style explicit-bullets {
    system: extends base;
    speak-as: bullets;
  }
  @counter-style explicit-numbers {
    system: extends base;
    speak-as: numbers;
  }
  @counter-style explicit-words {
    system: extends base;
    speak-as: words;
  }

  @counter-style auto-alphabetic {
    system: alphabetic;
    symbols: 'One' 'Two' 'Three';
    suffix: '. ';
    speak-as: auto;
  }
  @counter-style auto-cyclic {
    system: cyclic;
    symbols: 'One' 'Two' 'Three';
    suffix: '. ';
    speak-as: auto;
  }
  @counter-style auto-extends {
    system: extends base;
    speak-as: auto;
  }
  @counter-style auto-fixed {
    system: fixed;
    symbols: 'One' 'Two' 'Three';
    suffix: '. ';
    speak-as: auto;
  }
  @counter-style auto-symbolic {
    system: symbolic;
    symbols: 'One' 'Two' 'Three';
    suffix: '. ';
    speak-as: auto;
  }
  @counter-style auto-numeric {
    system: numeric;
    symbols: 'Zero' 'One' 'Two' 'Three';
    suffix: '. ';
    speak-as: auto;
  }
  @counter-style auto-additive {
    system: additive;
    additive-symbols: 3 'Three', 2 'Two', 1 'One';
    suffix: '. ';
    speak-as: auto;
  }

  @counter-style reference-bullets {
    system: fixed;
    symbols: 'Yi' 'Er' 'San';
    suffix: '> ';
    speak-as: explicit-bullets;
  }
  @counter-style reference-numbers {
    system: fixed;
    symbols: 'Yi' 'Er' 'San';
    suffix: '> ';
    speak-as: explicit-numbers;
  }
  @counter-style reference-words {
    system: fixed;
    symbols: 'Yi' 'Er' 'San';
    suffix: '> ';
    speak-as: explicit-words;
  }

</style>
<body>
  <ul style="list-style-type: disc">
    <li>"&#x2022; "</li>
  </ul>
  <ul style="list-style-type: circle">
    <li>"&#x25E6; "</li>
  </ul>
  <ul style="list-style-type: square">
    <li>"&#x25FE; "</li>
  </ul>
  <ul style="list-style-type: disclosure-open">
    <li>"&#x25BE; "</li>
  </ul>
  <ul style="list-style-type: disclosure-closed">
    <li>"&#x25B8; "</li>
  </ul>

  <ul style="list-style-type: explicit-bullets">
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
  </ul>
  <ul style="list-style-type: explicit-numbers">
    <li>"1. "</li>
    <li>"2. "</li>
    <li>"3. "</li>
  </ul>
  <ul style="list-style-type: explicit-words">
    <li>"One. "</li>
    <li>"Two. "</li>
    <li>"Three. "</li>
  </ul>

  <ul style="list-style-type: auto-alphabetic">
    <li>"One. "</li>
    <li>"Two. "</li>
    <li>"Three. "</li>
  </ul>
  <ul style="list-style-type: auto-cyclic">
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
  </ul>
  <ul style="list-style-type: auto-extends">
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
  </ul>
  <ul style="list-style-type: auto-fixed">
    <li>"1. "</li>
    <li>"2. "</li>
    <li>"3. "</li>
  </ul>
  <ul style="list-style-type: auto-symbolic">
    <li>"1. "</li>
    <li>"2. "</li>
    <li>"3. "</li>
  </ul>
  <ul style="list-style-type: auto-numeric">
    <li>"1. "</li>
    <li>"2. "</li>
    <li>"3. "</li>
  </ul>
  <ul style="list-style-type: auto-additive">
    <li>"1. "</li>
    <li>"2. "</li>
    <li>"3. "</li>
  </ul>

  <ul style="list-style-type: reference-bullets">
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
    <li>"&#x2022; "</li>
  </ul>
  <ul style="list-style-type: reference-numbers">
    <li>"1&gt; "</li>
    <li>"2&gt; "</li>
    <li>"3&gt; "</li>
  </ul>
  <ul style="list-style-type: reference-words">
    <li>"One&gt; "</li>
    <li>"Two&gt; "</li>
    <li>"Three&gt; "</li>
  </ul>

</body>