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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/grouping-content/the-li-element/grouping-li-reftest-002.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>li 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-li-elemen t">
8 <link rel="match" href="grouping-li-reftest-002-ref.html" />
9 <meta name="assert" content="li elements with ol parents have ordinal values ." />
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 li element.</p>
20
21 <p>The spec states:</p>
22 <blockquote>"If the parent element is an ol element, then the li element has an ordinal value. The value attribute is processed relative to the element's pa rent ol element (q.v.), if there is one. If there is not, the attribute has no e ffect."</blockquote>
23 <p>This reftest verifies that the value attribute has an effect when applied to a list item with an ol parent.</p>
24 <p>A reftest is necessary because the values of li elements as calculated by the user agent are NOT available programatically. Only explicitly-set values a re then available programatically.</p>
25 <p>This reftest passes if you see the numbers 1. 2. 3. below the words "Orde red List"</p>
26
27 <span>
28 <p>Ordered List</p>
29 <ol>
30 <li></li>
31 <li></li>
32 <li></li>
33 </ol>
34 </span>
35 </body>
36 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698