tor-browser

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

grid-fragmentation-001-ref.html (5857B)


      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 height:auto grid, not top-of-page</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 .block {
     29  border:5px solid;
     30 }
     31 .grid {
     32  display: grid;
     33  grid-template-columns: 30px 30px 30px;
     34  grid-template-rows: 50px;
     35  grid-column-gap: 12px;
     36  border:5px solid;
     37 }
     38 .t { border-bottom-width:0; }
     39 .b { border-top-width:0; }
     40 span { background:lime; border:1px solid black; }
     41 x { display:block; height:20px; }
     42 br { page-break-before:always; break-before:always; }
     43 </style>
     44 </head>
     45 <body>
     46 
     47 <div class="columns" style="height: 130px/*fragmentainer ends in the end border*/">
     48 <div style="padding-top:10px; background:grey">
     49 <div class="grid t">
     50 <span><x></x></span>
     51 <span class="t"><x></x></span>
     52 <span style="background:cyan" class="t"><x></x></span>
     53 </div>
     54 <br>
     55 <div class="grid b">
     56 <span><x></x></span>
     57 <span class="b"><x></x></span>
     58 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
     59 <span style="grid-row:1; grid-column:3; align-self:end; background:pink"><x></x></span>
     60 </div></div></div>
     61 
     62 <div class="columns" style="height: 18px/*fragmentainer ends in the end border*/">
     63 <div style="padding-top:10px; background:grey">
     64 <div class="block">
     65 </div></div></div>
     66 
     67 <div class="columns" style="height: 20px/*fragmentainer ends in the end border*/">
     68 <div style="padding-top:10px; background:grey">
     69 <div class="block" style="height:2px/*creates a Class C break opportunity at the end*/">
     70 </div></div></div>
     71 
     72 <div class="columns" style="height: 100px/*fragmentainer ends in the last row*/">
     73 <div style="padding-top:10px; background:grey">
     74 <div class="grid t">
     75 <span class="t"><x></x></span>
     76 <span class="t"><x></x></span>
     77 <span style="background:cyan" class="t"><x></x></span>
     78 </div>
     79 <br>
     80 <div class="grid b">
     81 <span class="b"><x></x></span>
     82 <span class="b" style="grid-row:1; grid-column:1; height:11px;"><x></x></span>
     83 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
     84 <span style="grid-row:1; grid-column:1; align-self:end; background:pink"><x></x></span>
     85 </div></div></div>
     86 
     87 <div class="columns" style="height: 70px/*fragmentainer ends in the grid gap between the rows */">
     88 <div style="padding-top:10px; background:grey">
     89 <div class="grid t">
     90 <span class="t"><x></x></span>
     91 <span class="t"><x></x></span>
     92 <span style="background:cyan" class="t"><x></x></span>
     93 </div>
     94 <div class="grid b">
     95 <span class="b"><x></x></span>
     96 <span class="b" style="grid-row:1; grid-column:1; height:11px;"><x></x></span>
     97 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
     98 <span style="grid-row:1; grid-column:1; align-self:end; background:pink"><x></x></span>
     99 </div></div></div>
    100 
    101 <div class="columns" style="height: 40px/*fragmentainer ends in the first row*/; margin-bottom:30px">
    102 <div style="padding-top:10px; background:grey">
    103 <div class="grid t">
    104 <span class="t"><x></x></span>
    105 <span class="t"><x></x></span>
    106 <span style="background:cyan" class="t"><x></x></span>
    107 </div>
    108 <div class="grid b">
    109 <span class="b"><x></x></span>
    110 <span class="b" style="grid-row:1; grid-column:1; height:11px;"><x></x></span>
    111 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
    112 <span style="grid-row:1; grid-column:1; align-self:end; background:pink"><x></x></span>
    113 </div></div></div>
    114 
    115 <div class="columns" style="height: 13px/*fragmentainer ends in the grid start border */; margin-bottom:60px">
    116 <div style="padding-top:10px; background:grey">
    117 <div class="grid t">
    118 <span class="t"><x></x></span>
    119 <span class="t"><x></x></span>
    120 <span style="background:cyan" class="t"><x></x></span>
    121 </div>
    122 <div class="grid b">
    123 <span class="b"><x></x></span>
    124 <span class="b" style="grid-row:1; grid-column:1; height:11px;"><x></x></span>
    125 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
    126 <span style="grid-row:1; grid-column:1; align-self:end; background:pink"><x></x></span>
    127 </div></div></div>
    128 
    129 <div class="columns" style="height: 8px/*fragmentainer ends above the grid*/; margin-bottom:60px">
    130 <div style="padding-top:10px; background:grey">
    131 <div class="grid t">
    132 <span class="t"><x></x></span>
    133 <span class="t"><x></x></span>
    134 <span style="background:cyan" class="t"><x></x></span>
    135 </div>
    136 <div class="grid b">
    137 <span class="b"><x></x></span>
    138 <span class="b" style="grid-row:1; grid-column:1; height:11px;"><x></x></span>
    139 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
    140 <span style="grid-row:1; grid-column:1; align-self:end; background:pink"><x></x></span>
    141 </div></div></div>
    142 
    143 <div class="columns" style="height: 0px/*zero height fragmentainer*/; margin-bottom:60px">
    144 <div style="padding-top:10px; background:grey">
    145 <div class="grid t">
    146 <span class="t"><x></x></span>
    147 <span class="t"><x></x></span>
    148 <span style="background:cyan" class="t"><x></x></span>
    149 </div>
    150 <div class="grid b">
    151 <span class="b"><x></x></span>
    152 <span class="b" style="grid-row:1; grid-column:1; height:11px;"><x></x></span>
    153 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
    154 <span style="grid-row:1; grid-column:1; align-self:end; background:pink"><x></x></span>
    155 </div></div></div>
    156 
    157 
    158 </body>
    159 </html>