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-009.html (983B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Layout Test: Grid item placement with non-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="Checks that inheriting grid-template-columns and grid-template-rows doesn't also inherit grid-template-areas.">
      8 <style>
      9 .wrapper {
     10  grid-template-areas: "area";
     11 }
     12 .grid {
     13  display: grid;
     14  width: 100px;
     15  height: 100px;
     16  grid-auto-columns: 0px 100%;
     17  grid-auto-rows: 0px 100%;
     18  grid-template-columns: inherit;
     19  grid-template-rows: inherit;
     20  background: red;
     21 }
     22 .item {
     23  grid-area: area;
     24  background: green;
     25 }
     26 </style>
     27 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     28 <div class="wrapper">
     29  <div class="grid">
     30    <div class="item"></div>
     31  </div>
     32 </div>