grouping-li-reftest-list-owner-mixed-ref.html (1017B)
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 <style> 9 li { 10 list-style-type: decimal; 11 } 12 </style> 13 14 <p>This test matches if the list displays similar to the following</p> 15 16 <pre>1. A 17 2. B 18 3. C 19 4. D 20 5. E 21 1. F 22 2. G 23 6. H 24 1. I 25 2. J 26 3. K 27 4. L</pre> 28 29 <hr> 30 31 <ol> 32 <li value="1">A</li> 33 <li value="2">B</li> 34 <li value="3">C</li> 35 <li value="4">D</li> 36 <li value="5">E</li> 37 <ol> 38 <li value="1">F</li> 39 <li value="2">G</li> 40 </ol> 41 <li value="6">H</li> 42 <ol> 43 <li value="1">I</li> 44 <li value="2"> 45 J 46 <dir> 47 <li value="3">K</li> 48 <li value="4">L</li> 49 </dir> 50 </li> 51 </ol> 52 </ol>