tor-browser

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

contain-paint-048.html (730B)


      1 <!DOCTYPE html>
      2 
      3  <meta charset="UTF-8">
      4 
      5  <title>CSS Containment Test: 'contain: paint' and clipping at padding edge</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-paint">
      9  <link rel="match" href="reference/ref-if-there-is-no-red.xht">
     10 
     11  <meta content="This test checks that an element with 'contain: paint' that has its content overflowing will clip at padding edge." name="assert">
     12 
     13  <style>
     14  div
     15    {
     16      color: red;
     17      contain: paint;
     18      font-size: 100px;
     19      width: 0;
     20    }
     21 
     22  </style>
     23 
     24  <p>Test passes if there is <strong>no red</strong>.
     25 
     26  <div>FAIL</div>