tor-browser

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

subgrid-no-items-on-edges-001.html (1166B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html>
      7 <head>
      8 <meta charset="utf-8">
      9 <title>CSS Grid Test: Subgrid with no grid items accommodates border and padding</title>
     10 <link rel="author" title="Ethan Jimenez" href="mailto:ethavar@microsoft.com">
     11 <link rel="help" href="https://drafts.csswg.org/css-grid-2/#subgrid-edge-placeholders">
     12 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
     13 <style>
     14 .wrapper {
     15  width: 100px;
     16  height: 100px;
     17  background: red;
     18 }
     19 .grid {
     20  display: inline-grid;
     21  grid: repeat(3, auto) / repeat(5, auto);
     22  background: red;
     23 }
     24 .subgrid {
     25  display: grid;
     26  grid-row: 1 / -1;
     27  grid-column: 1 / -1;
     28  grid-template: subgrid / subgrid;
     29  background: green;
     30  padding: 11px 7px 20px 13px;
     31  border-width: 14px 18px 5px 12px;
     32  border-style: solid;
     33  border-color: green;
     34 }
     35 </style>
     36 </head>
     37 <body>
     38 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     39 <div class="wrapper">
     40  <div class="grid">
     41    <div class="subgrid">
     42      <div class="subgrid"></div>
     43    </div>
     44  </div>
     45 </div>
     46 </body>
     47 </html>