blob: ce63cf7c7c043ef80b53a7c1beaade4a15d4a2b0 (
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
|
<!DOCTYPE html>
<meta charset="utf-8">
<title>display: list-item on non-<li> elements</title>
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value">
<link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner">
<link rel="match" href="grouping-li-reftest-display-list-item-ref.html">
<style>
.list-item {
display: list-item;
list-style-type: decimal;
}
.list-item[hidden] {
display: none;
}
</style>
<p>This test matches if both lists display similar to the following:</p>
<pre>1. A
2. B
D
3. E</pre>
<hr>
<ul>
<span class="list-item">A</span>
<span class="list-item">B</span>
<span class="list-item" hidden>C</span>
<span>D</span>
<span class="list-item">E</span>
</ul>
<ol>
<div class="list-item">A</div>
<div class="list-item">B</div>
<div class="list-item" hidden>C</div>
<div>D</div>
<div class="list-item">E</div>
</ol>
|