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-start-reftest-002.html" /> |
| 9 <meta name="assert" content="Sequences produced by calculated values for LI
elements within OL match spec's expectations. (part two)" /> |
| 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 <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> |
| 17 |
| 18 <p>The spec states:</p> |
| 19 <blockquote><p>The first item in the list has the ordinal value given by the
ol element's start attribute, unless that li element has a value attribute with
a value that can be successfully parsed, in which case it has the ordinal value
given by that value attribute.</p> |
| 20 <p>Each subsequent item in the list has the ordinal value given
by its value attribute, if it has one, or, if it doesn't, the ordinal value of t
he previous item, plus one if the reversed is absent, or minus one if it is pres
ent.</p></blockquote> |
| 21 |
| 22 <p><strong>This reftest passes if each list's items are numbered 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>4, 5, 6 (ol has start attribute of 2 which is overridden by first list it
em's value attribute of 4)</p> |
| 28 <span> |
| 29 <p>4.</p> |
| 30 <p>5.</p> |
| 31 <p>6.</p> |
| 32 </span> |
| 33 |
| 34 <p>4, 5, 6 (ol has start attribute of -10 which is overridden by first list
item's value attribute of 4)</p> |
| 35 <span> |
| 36 <p>4.</p> |
| 37 <p>5.</p> |
| 38 <p>6.</p> |
| 39 </span> |
| 40 |
| 41 <p>1, 5, 6 (2nd list item has value attribute of 5)</p> |
| 42 <span> |
| 43 <p>1.</p> |
| 44 <p>5.</p> |
| 45 <p>6.</p> |
| 46 </span> |
| 47 |
| 48 <p>-1, -5, -4 (list has a start attribute of -1, and 2nd list item has value
attribute of -5)</p> |
| 49 <span> |
| 50 <p>-1.</p> |
| 51 <p>-5.</p> |
| 52 <p>-4.</p> |
| 53 </span> |
| 54 |
| 55 </span> |
| 56 |
| 57 </body> |
| 58 </html> |
OLD | NEW |