Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(588)

Side by Side Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/grouping-content/the-ol-element/grouping-ol-start-reftest-001-ref-expected.html

Issue 2303013002: Add UMA metric to track usage of sending a mousedown to select elements. (Closed)
Patch Set: W3C auto test import CL. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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-ref.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 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 <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>
19
20 <p>The spec states:</p>
21 <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>
22 <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>
23
24 <p><strong>This reftest passes if each list's items are numbered identically to the horizontal sequence immediately above those list items.</strong></p>
25 <p>(Note: each list item has no content; only the sequencing should appear.) </p>
26
27 <span>
28
29 <p>2, 3, 4 (ol has start attribute of 2)</p>
30 <ol start="2">
31 <li></li>
32 <li></li>
33 <li></li>
34 </ol>
35
36 <p>-9, -8, -7 (ol has start attribute of -9)</p>
37 <ol start="-9">
38 <li></li>
39 <li></li>
40 <li></li>
41 </ol>
42
43 <p>1000, 1001, 1002 (list's start attribute of 1000 provided by JavaScript)< /p>
44 <ol id="start_me">
45 <li></li>
46 <li></li>
47 <li></li>
48 </ol>
49
50 <p>2, 1, 9 (each list item has a specified value attribute, list has a start attribute of 1000)</p>
51 <ol istart="1000">
52 <li value="2"></li>
53 <li value="1"></li>
54 <li value="9"></li>
55 </ol>
56
57 </span>
58
59 <script>
60 document.getElementById("start_me").start = 1000;
61 </script>
62
63 </body>
64 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698