grouping-li-reftest-list-owner-mixed.html (1125B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>list owner is calculated to be nearest ancestor ul or ul (but not dir) if it exists</title> 4 <link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me"> 5 <link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#ordinal-value"> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/semantics.html#list-owner"> 7 8 <link rel="match" href="grouping-li-reftest-list-owner-mixed-ref.html"> 9 10 <style> 11 li { 12 list-style-type: decimal; 13 } 14 15 .list-item { 16 display: list-item; 17 list-style-type: decimal; 18 } 19 20 </style> 21 22 <p>This test matches if the list displays similar to the following</p> 23 24 <pre>1. A 25 2. B 26 3. C 27 4. D 28 5. E 29 1. F 30 2. G 31 6. H 32 1. I 33 2. J 34 3. K 35 4. L</pre> 36 37 <hr> 38 39 <ul> 40 <li>A</li> 41 <li>B</li> 42 <div> 43 <li>C</li> 44 <span> 45 <li>D</li> 46 <li>E</li> 47 </span> 48 <ol> 49 <li>F</li> 50 <span class="list-item">G</span> 51 </ol> 52 </div> 53 <li>H</li> 54 <ol> 55 <li>I</li> 56 <li> 57 J 58 <dir> 59 <li>K</li> 60 <li>L</li> 61 </dir> 62 </li> 63 </ol> 64 </ul>