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-001-ref.html" /> | |
9 <meta name="assert" content="OL's type attribute defaults to decimal state."
/> | |
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><p>The type attribute represents the state given in the cell in
the second column of the row whose first cell matches the attribute's value; if
none of the cells match, or if the attribute is omitted, then the attribute repr
esents the decimal state.</p></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 (default value for unspecified type attribute is 'decimal')</p> | |
28 <ol> | |
29 <li></li> | |
30 <li></li> | |
31 <li></li> | |
32 </ol> | |
33 | |
34 <p>1, 2, 3 (default value for type attribute not listed in spec table is 'de
cimal' (type = "!"))</p> | |
35 <ol type="!"> | |
36 <li></li> | |
37 <li></li> | |
38 <li></li> | |
39 </ol> | |
40 | |
41 <p>1, 2, 3 (default value for type attribute not listed in spec table is 'de
cimal' (type = "2"))</p> | |
42 <ol type="2"> | |
43 <li></li> | |
44 <li></li> | |
45 <li></li> | |
46 </ol> | |
47 | |
48 <p>1, 2, 3 (default value for type attribute not listed in spec table is 'de
cimal' (type = "b"))</p> | |
49 <ol type="b"> | |
50 <li></li> | |
51 <li></li> | |
52 <li></li> | |
53 </ol> | |
54 | |
55 </span> | |
56 | |
57 </body> | |
58 </html> | |
OLD | NEW |