tor-browser

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

grid-fragmentation-002-ref.html (3796B)


      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 height:auto two row grid without grid items</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  position:relative;
     30  border:5px solid;
     31 }
     32 .grid {
     33  display: grid;
     34  position:relative;
     35  grid-template-columns: 30px 30px 30px;
     36  grid-template-rows: 50px;
     37  grid-gap: 12px;
     38  border:5px solid;
     39 }
     40 span { grid-row:1/2; position:absolute; top:0;bottom:0;right:0;left:0;background:lime; border:1px solid black; }
     41 x { display:block; height:20px; }
     42 
     43 .t { border-bottom-width:0; }
     44 .b { border-top-width:0; }
     45 br { page-break-before:always; break-before:always; }
     46 
     47 </style>
     48 </head>
     49 <body>
     50 
     51 <div class="columns" style="height: 130px/*fragmentainer ends in the end border*/">
     52 <div style="padding-top:10px; background:grey">
     53 <div class="grid t">
     54 <span style="height:48px"><x></x></span>
     55 </div>
     56 <br>
     57 <div class="grid b">
     58 </div></div></div>
     59 
     60 <div class="columns" style="height: 64px/*fragmentainer ends in the end border*/">
     61 <div style="padding-top:10px; background:grey">
     62 <div class="grid t">
     63 <span style="height:48px"><x></x></span>
     64 </div>
     65 <div class="grid b">
     66 </div></div></div>
     67 
     68 <div class="columns" style="height: 18px/*fragmentainer ends in the end border*/">
     69 <div style="padding-top:10px; background:grey">
     70 <div class="block">
     71 <span style="height:0"></span>
     72 </div></div></div>
     73 
     74 <div class="columns" style="height: 20px/*fragmentainer ends in the end border*/">
     75 <div style="padding-top:10px; background:grey">
     76 <div class="block t" style="height:2px">
     77 <span style="height:0px"></span>
     78 </div>
     79 <div class="block b" style="margin-top:6px;height:0px">
     80 </div></div></div>
     81 
     82 <div class="columns" style="height: 100px/*fragmentainer ends in the last row*/">
     83 <div style="padding-top:10px; background:grey">
     84 <div class="grid t">
     85 <span style="height:48px"><x></x></span>
     86 </div>
     87 <br>
     88 <div class="grid b">
     89 </div></div></div>
     90 
     91 <div class="columns" style="height: 70px/*fragmentainer ends in the grid gap between the rows */">
     92 <div style="padding-top:10px; background:grey">
     93 <div class="grid t">
     94 <span style="height:48px"><x></x></span>
     95 </div>
     96 <div class="grid b">
     97 </div></div></div>
     98 
     99 <div class="columns" style="height: 40px/*fragmentainer ends in the first row*/; margin-bottom:30px">
    100 <div style="padding-top:10px; background:grey">
    101 <div class="grid t">
    102 <span><x></x></span>
    103 </div>
    104 <div class="grid b">
    105 </div></div></div>
    106 
    107 <!--
    108 
    109 TODO (bug 1347692): this caused too many intermittent failures, see bug 1317149 and bug 1264056
    110 
    111 <div class="columns" style="height: 13px/*fragmentainer ends in the grid start border */; margin-bottom:60px">
    112 <div style="padding-top:10px; background:grey">
    113 <div class="grid t">
    114 <span><x></x></span>
    115 </div>
    116 <div class="grid b">
    117 </div></div></div>
    118 -->
    119 
    120 <div class="columns" style="height: 8px/*fragmentainer ends above the grid*/; margin-bottom:60px">
    121 <div style="padding-top:10px; background:grey">
    122 <div class="grid t">
    123 <span><x></x></span>
    124 </div>
    125 <div class="grid b">
    126 </div></div></div>
    127 
    128 <div class="columns" style="height: 0px/*zero height fragmentainer*/; margin-bottom:60px">
    129 <div style="padding-top:10px; background:grey">
    130 <div class="grid t">
    131 <span><x></x></span>
    132 </div>
    133 <div class="grid b">
    134 </div></div></div>
    135 
    136 
    137 </body>
    138 </html>