tor-browser

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

grid-item-mixed-baseline-004-ref.html (2907B)


      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: mixed align-content/self:baseline/last baseline in fragmentated grid</title>
      9  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1256429">
     10  <link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
     11  <style type="text/css">
     12 html,body {
     13    color:black; background-color:white; font:20px/1 Ahem; padding:0; margin:0;
     14 }
     15 
     16 .columns {
     17  position:relative;
     18     columns: 5;
     19      -ms-columns: 5;
     20  -webkit-columns: 5;
     21          columns: 5;
     22     column-fill: auto;
     23      -ms-column-fill: auto;
     24  -webkit-column-fill: auto;
     25          column-fill: auto;
     26  border: 2px dashed;
     27  margin-bottom: 5px;
     28  height: 120px;
     29 }
     30 
     31 .grid {
     32  display: grid;
     33  grid: 100px / repeat(3, auto);
     34  grid-auto-rows: 100px;
     35  border: 2px solid;
     36  margin: 1px;
     37 }
     38 .g1 {
     39  border-bottom-width: 0;
     40  grid-template-rows: 100px 0 0;
     41 }
     42 .g2 {
     43  border-top-width: 0;
     44  grid-template-rows: 0 100px 100px;
     45 }
     46 
     47 .h {
     48  visibility: hidden;
     49  height: 0;
     50 }
     51 
     52 span {
     53  background: lime;
     54  display: inline-block;
     55  border: 1px solid black;
     56 }
     57 
     58 span:nth-child(1) { font-size:30px; }
     59 span:nth-child(2) { font-size:15px; }
     60 span:nth-child(3) { font-size:10px; }
     61 span:nth-child(4) { font-size:20px; }
     62 
     63 .pbs { padding-block-start: 15px; margin-block-start: 5px; }
     64 .pbe { padding-block-end: 7px; margin-block-end: 3px; }
     65 
     66 .fb { align-content:baseline; align-self:self-start; justify-self:self-start; }
     67 .lb { align-content:last baseline; align-self:self-end; justify-self:self-end; }
     68 .s  { align-self:stretch; justify-self:stretch; }
     69 
     70 .sfb { align-self:baseline; }
     71 .slb { align-self:last baseline; align-content:self-end; }
     72 
     73 .hl { writing-mode: horizontal-tb; direction:ltr; }
     74 .hr { writing-mode: horizontal-tb; direction:rtl; }
     75 .vl { writing-mode: vertical-lr; text-orientation: sideways; }
     76 .vr { writing-mode: vertical-rl; text-orientation: sideways; }
     77 .vlr { writing-mode: vertical-lr; direction:rtl; text-orientation: sideways; }
     78 .vrl { writing-mode: vertical-rl; direction:ltr; text-orientation: sideways; }
     79 
     80 </style>
     81 </head>
     82 <body>
     83 
     84 <div class="columns">
     85 <div class="grid hl g1">
     86 <span class="sfb">A<br>B</span><span class="fb">M<br>N</span><span class="fb s">X<br>Z</span>
     87 <span class="sfb h">A<br>B</span><span class="fb h">M<br>N</span><span class="fb h">X<br>Z</span>
     88 <span class="sfb h">A<br>B</span><span class="fb h">M<br>N</span><span class="fb s h">X<br>Z</span>
     89 </div>
     90 <div class="grid hl g2">
     91 <span class="sfb h ">A<br>B</span><span class="fb h">M<br>N</span><span class="fb s h">X<br>Z</span>
     92 <span class="sfb">A<br>B</span><span class="fb">M<br>N</span><span class="fb">X<br>Z</span>
     93 <span class="sfb">A<br>B</span><span class="fb">M<br>N</span><span class="fb s">X<br>Z</span>
     94 </div>
     95 </div>
     96 
     97 </body>
     98 </html>