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-001.html" /> | |
9 <meta name="assert" content="Sequences produced by calculated values for LI
elements within OL match spec's expectations. (part one)" /> | |
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>2, 3, 4 (ol has start attribute of 2)</p> | |
28 <span> | |
29 <p>2.</p> | |
30 <p>3.</p> | |
31 <p>4.</p> | |
32 </span> | |
33 | |
34 <p>-9, -8, -7 (ol has start attribute of -9)</p> | |
35 <span> | |
36 <p>-9.</p> | |
37 <p>-8.</p> | |
38 <p>-7.</p> | |
39 </span> | |
40 | |
41 <p>1000, 1001, 1002 (list's start attribute of 1000 provided by JavaScript)<
/p> | |
42 <span> | |
43 <p>1000.</p> | |
44 <p>1001.</p> | |
45 <p>1002.</p> | |
46 </span> | |
47 | |
48 <p>2, 1, 9 (each list item has a specified value attribute, list has a start
attribute of 1000)</p> | |
49 <span> | |
50 <p>2.</p> | |
51 <p>1.</p> | |
52 <p>9.</p> | |
53 </span> | |
54 | |
55 </span> | |
56 | |
57 </body> | |
58 </html> | |
OLD | NEW |