tor-browser

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

baseline-001-ref.html (1279B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html><head>
      7  <meta charset="utf-8">
      8  <title>Reference: baseline-aligned subgrid item</title>
      9  <link rel="author" title="Mats Palmgren" href="mailto:mats@mozilla.com">
     10  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     11  <style>
     12 html,body {
     13  color:black; background-color:white; font:16px/1 Ahem; padding:0; margin:0;
     14 }
     15 
     16 .grid {
     17  display: grid;
     18  grid: 20px repeat(4, auto) 30px / 30px repeat(4, auto) 20px;
     19  place-content: start;
     20  place-items: baseline start;
     21  border: 1px solid;
     22  text-decoration: underline blue;
     23 }
     24 
     25 .subgrid {
     26  background: lightgrey;
     27  grid-column: 2 / span 4;
     28  grid-row: 3 / span 2;
     29  min-width: 10px;
     30  min-height: 0;
     31  background: yellow;
     32 }
     33 
     34 x, z {
     35  display: block;
     36  min-width: 20px;
     37  min-height: 10px;
     38  font-size: 8em;
     39  background: silver;
     40 }
     41 z {
     42  width: 20px;
     43  height: 10px;
     44 }
     45 
     46  </style>
     47 </head>
     48 <body>
     49 
     50 <div class="grid">
     51 <y style="grid-area:3/1">A&nbsp;</y>
     52 <div class="subgrid">
     53  <z></z><x>&nbsp;A</x>
     54 </div>
     55 </div>
     56 
     57 <div class="grid" style="align-items: last baseline">
     58 <y style="grid-area:4/1">A&nbsp;</y>
     59 <div class="subgrid">
     60  <z></z><x>&nbsp;A</x>
     61 </div>
     62 </div>
     63 
     64 </body>
     65 </html>