OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <meta charset="utf-8"> | |
5 <title>ol element</title> | |
6 <link rel="author" title="dzenana" href="mailto:dzenana.trenutak@gmail.com"> | |
7 <link rel="help" href="https://html.spec.whatwg.org/multipage/#the-ol-elemen
t"> | |
8 <link rel="match" href="grouping-ol-type-reftest-002-ref.html" /> | |
9 <meta name="assert" content="List items are rendered consistently with the s
tate of the type attribute." /> | |
10 <style type="text/css"> | |
11 span p {display:list-item; margin-left: 0; margin-top: 0; margin-bottom:
0; padding-left: 0; padding-top: 0; padding-bottom: 0;} | |
12 span li {margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left:
0; padding-top: 0; padding-bottom: 0; font-family: monospace;} | |
13 span ol {margin-left: 0; margin-top: 0; margin-bottom: 0; padding-left:
5em; padding-top: 0; padding-bottom: 0; font-family: monospace; list-style-posit
ion: inside;} | |
14 </style> | |
15 </head> | |
16 <body> | |
17 <p>This test continues to validate the ol element. This reftest is necessary
because the values of the ol's li children as calculated and displayed by the u
ser agent are NOT systematically available programatically. Only explicitly-set
values are available programatically. Therefore, we need to check actual renderi
ng against expected rendering.</p> | |
18 | |
19 <p>The spec states:</p> | |
20 <blockquote>User agents should render the items of the list in a manner cons
istent with the state of the type attribute of the ol element.</blockquote> | |
21 | |
22 <p><strong>This reftest passes if each list's items are labelled identically
to the horizontal sequence immediately above those list items:</strong></p> | |
23 <p>(Note: each list item has no content; only the sequencing should appear.)
</p> | |
24 | |
25 <span> | |
26 | |
27 <p>1, 2, 3 (type attribute of "1" results in decimal type)</p> | |
28 <ol type="1"> | |
29 <li></li> | |
30 <li></li> | |
31 <li></li> | |
32 </ol> | |
33 | |
34 <p>aa, ab, ac (type attribute of "a" results in lower case latin alphabet, s
tart = 27)</p> | |
35 <ol type="a" start="27"> | |
36 <li></li> | |
37 <li></li> | |
38 <li></li> | |
39 </ol> | |
40 | |
41 <p>AA, AB, AC (type attribute of "A" results in upper case latin alphabet, s
tart = 27)</p> | |
42 <ol type="A" start="27"> | |
43 <li></li> | |
44 <li></li> | |
45 <li></li> | |
46 </ol> | |
47 | |
48 <p>i, v, c (type attribute of "i" results in lower case roman alphabet, list
values = 1, 5, 100)</p> | |
49 <ol type="i"> | |
50 <li value="1"></li> | |
51 <li value="5"></li> | |
52 <li value="100"></li> | |
53 </ol> | |
54 | |
55 <p>I, V, C (type attribute of "I" results in upper case roman alphabet, list
values = 1, 5, 100)</p> | |
56 <ol type="I"> | |
57 <li value="1"></li> | |
58 <li value="5"></li> | |
59 <li value="100"></li> | |
60 </ol> | |
61 | |
62 </span> | |
63 | |
64 </body> | |
65 </html> | |
OLD | NEW |