tor-browser

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

contain-size-052.html (961B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Containment Test: 'contain: size' does not apply to table-cell element</title>
      6 
      7  <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/">
      8  <link rel="help" href="https://www.w3.org/TR/css-contain-1/#containment-size">
      9  <link rel="match" href="reference/contain-size-051-ref.html">
     10 
     11 
     12  <style>
     13  div#table
     14    {
     15      border-spacing: 2px;
     16      display: table;
     17    }
     18 
     19  div#table-row
     20    {
     21      display: table-row;
     22    }
     23 
     24  div.table-cell
     25    {
     26      contain: size;
     27      display: table-cell;
     28      font-size: 50px;
     29      padding: 1px;
     30    }
     31  </style>
     32 
     33  <p>Test passes if "5678" (without quotes) is readable and if the digits do not overlap each other.
     34 
     35  <div id="table">
     36    <div id="table-row">
     37      <div class="table-cell">5</div><div class="table-cell">6</div><div class="table-cell">7</div><div class="table-cell">8</div>
     38    </div>
     39  </div>