| <!DOCTYPE html> |
| <html> |
| <head> |
| <title>CSS Reftest Reference</title> |
| <link rel="author" title="Mihai Balan" href="mibalan@adobe.com"> |
| <style> |
| #list1 ol, ul { |
| counter-reset: items 0; |
| padding-left: 2em; |
| } |
| li { |
| counter-increment: items 1; |
| list-style-type: none; |
| } |
| .twice>li { |
| counter-increment: items 2; |
| } |
| li::before { |
| content: counters(items, ".") ". "; |
| display: inline-block; |
| margin-right: .3em; |
| text-align: right; |
| } |
| .roman>li::before { |
| content: counters(items, ".", upper-roman) ". "; |
| } |
| .disc>li::before { |
| content: counter(items, disc) " "; |
| } |
| |
| .region { |
| background-color: lightgray; |
| margin: 1em; |
| float: left; |
| width: 17em; |
| height: 15em; |
| } |
| </style> |
| </head> |
| <body> |
| <p>This test passes if you see a gray rectangle with a list containing sublists as follows: the outermost list items should be numbered using roman numerals; the second-level list should be a bullet list with two items; the innermost list should be numbered using three levels of decimal numbers (<em>e.g.</em> 2.1.1).</p> |
| <div class="region" id="r1"> |
| <ol class="roman" id="list1"> |
| <li>Roman list, item I</li> |
| <li>Roman list, item II |
| <ul class="disc"> |
| <li>Bullet 1 |
| <ol> |
| <li>Sub-point 2.1.1</li> |
| <li>Sub-point 2.1.2</li> |
| </ol> |
| </li> |
| <li>Bullet 2 |
| <ol> |
| <li>Sub-point 2.2.1</li> |
| <li>Sub-point 2.2.2</li> |
| <li>Sub-point 2.2.3</li> |
| <li>Sub-point 2.2.4</li> |
| </ol> |
| </li> |
| </ul> |
| </li> |
| <li>Roman list, item III</li> |
| <li>Roman list, item IV</li> |
| </ol> |
| </div> |
| </body> |
| </html> |