details-open.html (596B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Test: list-item counter with details open </title> 4 <link rel="author" href="mailto:sakhapov@chromium.org"> 5 <link rel="match" href="details-open-ref.html"> 6 <link rel="help" href="https://html.spec.whatwg.org/multipage/grouping-content.html#the-li-element"> 7 <details> 8 <summary>Expand me</summary> 9 <ol style="margin: 0; padding: 0; list-style-position: inside;"> 10 <li value="5">Should be numbered 5</li> 11 </ol> 12 </details> 13 <script> 14 document.documentElement.offsetTop; 15 document.querySelector("details").setAttribute("open", ""); 16 </script>