tor-browser

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

contain-paint-010.html (926B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Containment Test: Paint containment fixed positioned descendants</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-contain-1/#containment-paint">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <meta name=assert content="Paint containment makes an element to act as containing block for fixed positioned descendants.">
      8 <style>
      9 #contain-paint {
     10  contain: paint;
     11  width: 100px;
     12  height: 50px;
     13  background: red;
     14 }
     15 
     16 #fixed {
     17  position: fixed;
     18  bottom: 0;
     19  right: 0;
     20  background: green;
     21  width: 100px;
     22  height: 50px;
     23 }
     24 </style>
     25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     26 <div id="contain-paint">
     27  <div id="fixed"></div>
     28 </div>
     29 <div id="contain-paint" style="display: inline-block">
     30  <div id="fixed"></div>
     31 </div>