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-008.html (1005B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Grid item placement with inherited grid-template-areas</title>
      4 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com">
      5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#line-placement">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      7 <meta name="assert" content="Grid placement algorithm is able to select the right line when defined implicitly with an inherited grid-template-areas.">
      8 <style>
      9 .wrapper {
     10  grid-template-areas: "a b" "a c";
     11 }
     12 .grid {
     13  display: grid;
     14  grid-template-areas: inherit;
     15  width: 100px;
     16  height: 100px;
     17  background: red;
     18 }
     19 .item {
     20  background: green;
     21 }
     22 </style>
     23 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     24 <div class="wrapper">
     25  <div class="grid">
     26    <div class="item" style="grid-area: a"></div>
     27    <div class="item" style="grid-area: b"></div>
     28    <div class="item" style="grid-area: c"></div>
     29  </div>
     30 </div>