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.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 span p {margin-left: 0; margin-top: 0; margin-bottom: 0; padding-le
ft: 5em; padding-top: 0; padding-bottom: 0; font-family: monospace;} |
| 13 </style> |
| 14 </head> |
| 15 <body> |
| 16 <h1>Description</h1> |
| 17 <p>This test continues to validate the ol element.</p> |
| 18 |
| 19 <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> |
| 20 |
| 21 <p>The spec states:</p> |
| 22 <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> |
| 23 |
| 24 <p><strong>This reftest passes if you see an ascending list followed by two
descending lists.</strong></p> |
| 25 <p>(Note: each list item has no content; only the sequencing should appear.)
</p> |
| 26 |
| 27 <span> |
| 28 |
| 29 <p>Ordered List</p> |
| 30 <span> |
| 31 <p>1.</p> |
| 32 <p>2.</p> |
| 33 <p>3.</p> |
| 34 </span> |
| 35 |
| 36 <p>Ordered List - reversed via content attribute</p> |
| 37 <span> |
| 38 <p>3.</p> |
| 39 <p>2.</p> |
| 40 <p>1.</p> |
| 41 </span> |
| 42 |
| 43 <p>Ordered List - reversed via IDL</p> |
| 44 <span> |
| 45 <p>3.</p> |
| 46 <p>2.</p> |
| 47 <p>1.</p> |
| 48 </span> |
| 49 |
| 50 </span> |
| 51 |
| 52 |
| 53 </body> |
| 54 </html> |
OLD | NEW |