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-rev-reftest-001-ref.html" /> | |
9 <meta name="assert" content="OL's reversed attribute creates a descending li
st." /> | |
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; | |
14 list-style-position: inside; list-style-type: decimal; } | |
15 </style> | |
16 </head> | |
17 <body> | |
18 <h1>Description</h1> | |
19 <p>This test continues to validate the ol element.</p> | |
20 | |
21 <p>These reftests are necessary because the values of the ol's li children a
s calculated by the user agent are NOT available programatically. Only explicitl
y-set values are available programatically. Therefore, we need to check actual r
endering against expected rendering.</p> | |
22 | |
23 <p>The spec states:</p> | |
24 <blockquote>"The reversed attribute is a boolean attribute. If present, it i
ndicates that the list is a descending list (..., 3, 2, 1). If the attribute is
omitted, the list is an ascending list (1, 2, 3, ...)."</blockquote> | |
25 | |
26 <p><strong>This reftest passes if you see an ascending list followed by two
descending lists.</strong></p> | |
27 <p>(Note: each list item has no content; only the sequencing should appear.)
</p> | |
28 | |
29 <span> | |
30 | |
31 <p>Ordered List</p> | |
32 <ol> | |
33 <li></li> | |
34 <li></li> | |
35 <li></li> | |
36 </ol> | |
37 | |
38 <p>Ordered List - reversed via content attribute</p> | |
39 <ol reversed="reversed"> | |
40 <li></li> | |
41 <li></li> | |
42 <li></li> | |
43 </ol> | |
44 | |
45 <p>Ordered List - reversed via IDL</p> | |
46 <ol id="reverse_me"> | |
47 <li></li> | |
48 <li></li> | |
49 <li></li> | |
50 </ol> | |
51 | |
52 </span> | |
53 | |
54 <script> | |
55 document.getElementById("reverse_me").reversed = true; | |
56 </script> | |
57 | |
58 </body> | |
59 </html> | |
OLD | NEW |