tor-browser

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

grid-fragmentation-016-ref.html (6082B)


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