tor-browser

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

grid-placement-using-named-grid-lines-001.html (1318B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Grid item placement mixing named grid areas and lines</title>
      4 <link rel="author" title="Javier Fernandez Garcia-Boente" href="mailto:jfernandez@igalia.com">
      5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#line-placement">
      6 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-placement-slot">
      7 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#named-grid-area">
      8 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      9 <meta name="assert" content="Line placement algorithm selects the first matching column when using a grid line name associated to several columns and no integer is specified within the custom-ident.">
     10 <style>
     11 .grid {
     12    display: inline-grid;
     13    background: red;
     14    grid-template-columns: [C] 25px [C] 25px [C] 25px [C] 25px;
     15    grid-auto-rows: 50px;
     16    grid-template-areas: "A1 A2 A3 A4"
     17                         ".  A2 A3 A4";
     18 }
     19 .grid > div { background: green; }
     20 </style>
     21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     22 <div class="grid">
     23    <div style="grid-area: A1"></div>
     24    <div style="grid-area: A2"></div>
     25    <div style="grid-area: A3"></div>
     26    <div style="grid-area: A4"></div>
     27    <div style="grid-column: C; grid-row: 2;"></div>
     28 </div>