tor-browser

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

contain-layout-007.html (846B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Containment Test: Layout 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-layout">
      6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht">
      7 <meta name=assert content="Layout containment makes an element to act as containing block for fixed positioned descendants.">
      8 <style>
      9 #contain-layout {
     10  contain: layout;
     11  width: 100px;
     12  height: 100px;
     13  background: red;
     14 }
     15 
     16 #fixed {
     17  position: fixed;
     18  bottom: 0;
     19  right: 0;
     20  background: green;
     21  width: 100px;
     22  height: 100px;
     23 }
     24 </style>
     25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     26 <div id="contain-layout">
     27  <div id="fixed"></div>
     28 </div>