tor-browser

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

grid-items-sizing-alignment-001.html (1422B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Grid Item Sizing</title>
      4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
      5 <link rel="help" href="https://www.w3.org/TR/css-grid-1/#grid-item-sizing">
      6 <link rel="match" href="grid-items-sizing-alignment-001-ref.html" />
      7 <meta name="assert" content="Checks how alignment properties affect the size of the non-replaced vs replaced grid items.">
      8 <style>
      9  #grid {
     10    display: grid;
     11    grid-auto-rows: 200px;
     12    grid-template-columns: repeat(3, 200px);
     13  }
     14  button {
     15    margin: 0; /* Prevent WebKit from adding some margin */
     16  }
     17 </style>
     18 
     19 <p>Test passes if it has the same output than the reference.</p>
     20 
     21 <div id="grid">
     22  <button style="align-self: normal; justify-self: normal;">Stretched button (200x200)</button>
     23  <button style="align-self: stretch; justify-self: stretch;">Stretched button (200x200)</button>
     24  <button style="align-self: start; justify-self: start;">Regular button</button>
     25  <img src="support/50x50-green.png" alt="Image download support must be enabled"
     26    style="align-self: normal; justify-self: normal;" />
     27  <img src="support/50x50-green.png" alt="Image download support must be enabled"
     28    style="align-self: stretch; justify-self: stretch;" />
     29  <img src="support/50x50-green.png" alt="Image download support must be enabled"
     30    style="align-self: start; justify-self: start;" />
     31 </div>