tor-browser

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

contain-paint-clip-006.html (1214B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4  <meta charset="utf-8">
      5  <title>CSS Test: 'contain: paint' with overflowing text contents.</title>
      6  <link rel="author" title="Yusuf Sermet" href="mailto:ysermet@mozilla.com">
      7  <link rel="author" title="Kyle Zentner" href="mailto:zentner.kyle@gmail.com">
      8  <link rel="help" href="https://drafts.csswg.org/css-contain/#containment-paint">
      9  <link rel="match" href="contain-paint-clip-006-ref.html">
     10  <style>
     11  .root {
     12    contain: paint;
     13    width: 100px;
     14    height: 100px;
     15    background: green;
     16    margin: 25px;
     17    padding: 25px;
     18  }
     19  </style>
     20 </head>
     21 <body>
     22  <div class="root">
     23    AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA This text should
     24    be clipped to the content box. Lorem ipsum dolor sit amet, consectetur adipiscing
     25    elit. Integer nec odio. Praesent libero. Sed cursus ante dapibus diam. Sed
     26    nisi. Nulla quis sem at nibh elementum imperdiet. Duis sagittis ipsum.
     27    Praesent mauris. Fusce nec tellus sed augue semper porta. Mauris massa.
     28    Vestibulum lacinia arcu eget nulla. Class aptent taciti sociosqu ad litora
     29    torquent per conubia nostra, per inceptos himenaeos. Curabitur sodales
     30    ligula in libero.
     31  </div>
     32 </body>
     33 </html>