PageRenderTime 60ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/grouping-content/the-ol-element/grouping-ol-rev-reftest-001-ref.html

https://gitlab.com/jonnialva90/iridium-browser
HTML | 54 lines | 44 code | 10 blank | 0 comment | 0 complexity | 0c9fe19b776ffb00731f1cffc4609e0e MD5 | raw file
  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-element">
  8. <link rel="match" href="grouping-ol-rev-reftest-001.html" />
  9. <meta name="assert" content="OL's reversed attribute creates a descending list." />
  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-left: 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. <p>These reftests are necessary because the values of the ol's li children as calculated by the user agent are NOT available programatically. Only explicitly-set values are available programatically. Therefore, we need to check actual rendering against expected rendering.</p>
  19. <p>The spec states:</p>
  20. <blockquote>"The reversed attribute is a boolean attribute. If present, it indicates 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>
  21. <p><strong>This reftest passes if you see an ascending list followed by two descending lists.</strong></p>
  22. <p>(Note: each list item has no content; only the sequencing should appear.)</p>
  23. <span>
  24. <p>Ordered List</p>
  25. <span>
  26. <p>1.</p>
  27. <p>2.</p>
  28. <p>3.</p>
  29. </span>
  30. <p>Ordered List - reversed via content attribute</p>
  31. <span>
  32. <p>3.</p>
  33. <p>2.</p>
  34. <p>1.</p>
  35. </span>
  36. <p>Ordered List - reversed via IDL</p>
  37. <span>
  38. <p>3.</p>
  39. <p>2.</p>
  40. <p>1.</p>
  41. </span>
  42. </span>
  43. </body>
  44. </html>