tor-browser

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

reversed-ol-crash.html (622B)


      1 <!DOCTYPE html>
      2 <title>Don't crash with intermediate container in reversed list</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-contain-2/#containment-style">
      4 <link rel="help" href="https://drafts.csswg.org/css-contain-2/#containment-style">
      5 <link rel="help" href="https://crbug.com/1377644">
      6 <style>
      7 .container {
      8  container-type: size;
      9 }
     10 
     11 /* Prevent double layout due to scrollbar speculation */
     12 html {
     13  overflow: hidden;
     14 }
     15 
     16 @container (width > 1px) {
     17  .item {
     18    display: list-item;
     19  }
     20 }
     21 </style>
     22 <ol reversed>
     23  <li>A</li>
     24  <div class=container>
     25    <div class=item>
     26      B
     27    </div>
     28  </div>
     29 </ol>