tor-browser

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

line-names-015.html (950B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Grid Test: Clamping a nested subgrid's grid-template-areas in one dimension</title>
      4 <link rel="author" title="Kurt Catti-Schmidt" href="mailto:kschmi@microsoft.com">
      5 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#grid-template-areas-property">
      6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
      7 <style>
      8 .grid {
      9  background: green;
     10  display: grid;
     11  height: 100px;
     12  width: 100px;
     13  grid-template: 50px 50px / 50px 50px;
     14  grid-template-areas: "item item"
     15                       "item item";
     16 }
     17 .subgrid {
     18  display: grid;
     19  grid-template-columns: subgrid;
     20  grid-template-rows: 50px 50px;
     21  grid-column: span 2;
     22  grid-row: span 2;
     23 }
     24 .item {
     25  background: red;
     26  grid-area: item;
     27 }
     28 </style>
     29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     30 <div class="grid">
     31  <div class="subgrid">
     32    <div class="item"></div>
     33  </div>
     34 </div>