tor-browser

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

grid-fragmentation-026-ref.html (5498B)


      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: Fragmentation of definite height grid, forced row breaks, avoid-break grid</title>
      9  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
     10  <style type="text/css">
     11 html,body {
     12    color:black; background-color:white; font-size:16px; padding:0; margin:0;
     13 }
     14 body { overflow:hidden; }
     15 
     16 .columns {
     17  position:relative;
     18      -ms-columns: 5;
     19  -webkit-columns: 5;
     20          columns: 5;
     21      -ms-column-fill: auto;
     22  -webkit-column-fill: auto;
     23          column-fill: auto;
     24  border: 2px solid salmon;
     25  margin-bottom: 5px;
     26 }
     27 
     28 .grid {
     29  display: grid;
     30  grid-template-columns: 30px 30px 30px;
     31  grid-auto-rows: 30px;
     32  grid-gap: 12px;
     33  border:5px solid;
     34 }
     35 span { background:lime; border:1px solid black; }
     36 x { display:block; height:20px; }
     37 
     38 .t { border-bottom-width:0; }
     39 .b { border-top-width:0; }
     40 .m { border-top-width:0; border-bottom-width:0; }
     41 
     42 s { display:block; height:90px; }
     43 </style>
     44 </head>
     45 <body>
     46 
     47 <div class="columns" style="height: 100px/*two rows would fit in 1st column*/">
     48 <div style="padding-top:10px; background:grey">
     49 <s></s>
     50 <div class="grid t">
     51 <span><x></x></span>
     52 <span class="t"><x></x></span>
     53 <span class="t" style="background:cyan"><x></x></span>
     54 </div>
     55 <div style="height:40px;"></div>
     56 <div class="grid b" style="height:60px">
     57 <span class="b"><x></x></span>
     58 <span class="b" style="grid-area:1/3; height:6px; background:cyan"><x></x></span>
     59 <span style="grid-area:1/3; align-self:end; background:pink"><x></x></span>
     60 <span style="grid-row:1"><x></x></span>
     61 <span><x></x></span>
     62 </div></div></div>
     63 
     64 <div class="columns" style="height:30px">
     65 <div style="padding-top:10px; background:grey">
     66 <s style="height:20px;"></s>
     67 <div style="height:90px;border:5px solid;"></div>
     68 </div></div>
     69 
     70 <div class="columns" style="height: 60px/*everything would fit in 1st column*/">
     71 <div style="padding-top:10px; background:grey">
     72 <div style="height:50px;"></div>
     73 <div class="grid t">
     74 <span><x></x></span>
     75 </div>
     76 <div style="height:60px; border:5px solid; border-top-width:0;">
     77 </div></div></div>
     78 
     79 <div class="columns" style="height: 100px/*everything would fit in 1st column*/">
     80 <div style="padding-top:10px; background:grey">
     81 <s></s>
     82 <div class="grid t">
     83 <span class="t"><x></x></span>
     84 <span class="t"><x></x></span>
     85 <span class="t" style="background:cyan"><x></x></span>
     86 </div>
     87 <div style="height:40px;"></div>
     88 <div class="grid b" style="padding-bottom:30px">
     89 <span class="b" style="grid-area:1/1; height:6px"><x></x></span>
     90 <span style="align-self:end; grid-area:1/1; background:pink"><x></x></span>
     91 <span class="b"><x></x></span>
     92 <span class="b" style="height:6px; background:cyan"><x></x></span>
     93 </div></div></div>
     94 
     95 <div class="columns" style="height: 100px/*everything would fit in 1st column*/">
     96 <div style="padding-top:10px; background:grey">
     97 <s></s>
     98 <div class="grid t">
     99 <span class="t"><x></x></span>
    100 <span class="t"><x></x></span>
    101 <span class="t" style="background:cyan"><x></x></span>
    102 </div>
    103 <div style="height:40px;"></div>
    104 <div class="grid b" style="padding-bottom:30px">
    105 <span class="b" style="grid-area:1/1; height:6px"><x></x></span>
    106 <span style="align-self:end; grid-area:1/1; background:pink"><x></x></span>
    107 <span class="b"><x></x></span>
    108 <span class="b" style="height:6px; background:cyan"><x></x></span>
    109 </div></div></div>
    110 
    111 <div class="columns" style="height: 100px/*everything would fit in 1st column*/">
    112 <div style="padding-top:10px; background:grey">
    113 <div style="height:90px;"></div>
    114 <div class="grid" style="padding-bottom:18px">
    115 <span style="height:35px"><x></x></span>
    116 <span style="grid-row:span 2"><x></x></span>
    117 <span style="height:35px; background:cyan"><x></x></span>
    118 <span style="grid-area:2/1; align-self:end; background:pink"><x></x></span>
    119 </div>
    120 </div></div>
    121 
    122 <div class="columns" style="height: 97px/*everything would fit in 1st column, except bottom border*/">
    123 <div style="padding-top:10px; background:grey">
    124 <div style="height:87px;"></div>
    125 <div class="grid t" style="padding-bottom:18px">
    126 <span style="height:35px"><x></x></span>
    127 <span style="grid-row:span 2"><x></x></span>
    128 <span style="height:35px; background:cyan"><x></x></span>
    129 <span style="grid-area:2/1; align-self:end; background:pink"><x></x></span>
    130 </div>
    131 <div class="grid b"></div>
    132 </div></div>
    133 
    134 <div class="columns" style="height: 80px/*one row fits in 1st column, two in 2nd column, but forced break there*/">
    135 <div style="padding-top:30px; background:grey">
    136 <div class="grid t">
    137 <span class="t"><x></x></span>
    138 <span class="t" style="background:cyan"><x></x></span>
    139 </div>
    140 <div class="grid m">
    141 <span class="b" style="grid-area:1/1; height:6px"><x></x></span>
    142 <span class="b" style="background:cyan"><x></x></span>
    143 <span style="grid-area:1/1; align-self:end; background:pink"><x></x></span>
    144 </div>
    145 <div style="height:50px"></div>
    146 <div class="grid b">
    147 <span><x></x></span>
    148 </div>
    149 </div></div>
    150 
    151 <div class="columns" style="height: 160px/*everything would fit in 1st column*/">
    152 <div style="padding-top:30px; background:grey">
    153 <div class="grid t">
    154 <span class="t" style="grid-row: span 2"><x></x></span>
    155 <span style="grid-row: span 2"><x></x></span>
    156 </div>
    157 <div style="height:53px"></div>
    158 <div style="height:18px; border:5px solid; border-top-width:0;">
    159 <span class="b" style="display:block;height:29px;width:28px"></span>
    160 </div>
    161 </div></div>
    162 
    163 </body>
    164 </html>