tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

li-with-overflow-hidden-change-list-style-position-001.html (1014B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Lists: test inside and outside switch</title>
      4 <link rel=help href="https://www.w3.org/TR/CSS22/generate.html#lists">
      5 <link rel=match href="li-with-overflow-hidden-change-list-style-position-001-ref.html">
      6 <!-- https://bugs.chromium.org/p/chromium/issues/detail?id=344941 -->
      7 
      8 <p>The test passes if the first li is inside and the second one is outside.</p>
      9 
     10 <ul>
     11  <li id="outSide" style="list-style-position: outside;">
     12    <div style="overflow:hidden;">
     13      outside to inside
     14    </div>
     15  </li>
     16 </ul>
     17 
     18 <ul>
     19  <li id="inSide" style="list-style-position: inside;">
     20    <div style="overflow:hidden;">
     21      inside to outside
     22    </div>
     23  </li>
     24 </ul>
     25 <script>
     26  document.body.offsetHeight;
     27 
     28  var outside_li=document.getElementById("outSide");
     29  outside_li.style.listStylePosition = "inside";
     30  document.body.offsetHeight;
     31 
     32  var inside_li=document.getElementById("inSide");
     33  inside_li.style.listStylePosition = "outside";
     34  document.body.offsetHeight;
     35 
     36 </script>