tor-browser

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

positioned-grid-items-019.html (825B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Fixed positioned element in grid.</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-grid-1/#abspos" title="9. Absolute Positioning">
      5 <link rel="match" href="positioned-grid-items-019-ref.html">
      6 <meta name="assert" content="This test checks the behavior of the fixed positioned elements with a grid container as parent.">
      7 <style>
      8 
      9  #grid {
     10    display: inline-grid;
     11    grid: 50px 50px / 50px 50px;
     12    padding: 5px;
     13    border: 5px solid;
     14    background-color: gray;
     15    margin: 50px;
     16  }
     17 
     18  #fixed {
     19    width: 50px;
     20    height: 50px;
     21    background-color: blue;
     22    position: fixed;
     23    top: 0px;
     24    left: 0px;
     25  }
     26 
     27 </style>
     28 
     29 <p>The test passes if it has the same output than the reference.</p>
     30 
     31 <div id="grid">
     32  <div id="fixed"></div>
     33 </div>