tor-browser

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

grid-fragmentation-018-ref.html (5522B)


      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, not top-of-page, forced breaks, and 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 .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 </style>
     43 </head>
     44 <body>
     45 
     46 <div class="columns" style="height: 100px/*two rows would fit in 1st column*/">
     47 <div style="padding-top:10px; background:grey">
     48 <div class="grid">
     49 <span><x></x></span>
     50 <span class="t"><x></x></span>
     51 <span class="t" style="background:cyan"><x></x></span>
     52 </div>
     53 <div style="height:40px;"></div>
     54 <div class="grid" style="height:60px">
     55 <span class="b"><x></x></span>
     56 <span class="b" style="grid-area:1/3; height:6px; background:cyan"><x></x></span>
     57 <span style="grid-area:1/3; align-self:end; background:pink"><x></x></span>
     58 <span style="grid-row:1"><x></x></span>
     59 <span><x></x></span>
     60 </div></div></div>
     61 
     62 <div class="columns" style="height:30px">
     63 <div style="padding-top:10px; background:grey">
     64 <div style="height:90px;border:5px solid;box-decoration-break: clone;"></div>
     65 </div></div>
     66 
     67 <div class="columns" style="height: 60px/*everything would fit in 1st column*/">
     68 <div style="padding-top:10px; background:grey">
     69 <div style="height:50px;"></div>
     70 <div class="grid" style="padding-bottom:20px">
     71 <span><x></x></span>
     72 </div>
     73 <div style="height:40px; border:5px solid;"></div>
     74 </div></div></div>
     75 
     76 <div class="columns" style="height: 100px/*everything would fit in 1st column*/">
     77 <div style="padding-top:10px; background:grey">
     78 <div class="grid">
     79 <span class="t"><x></x></span>
     80 <span class="t"><x></x></span>
     81 <span class="t" style="background:cyan"><x></x></span>
     82 </div>
     83 <div style="height:40px;"></div>
     84 <div class="grid" style="padding-bottom:30px">
     85 <span class="b" style="grid-area:1/1; height:6px"><x></x></span>
     86 <span style="align-self:end; grid-area:1/1; background:pink"><x></x></span>
     87 <span class="b"><x></x></span>
     88 <span class="b" style="height:6px; background:cyan"><x></x></span>
     89 </div></div></div>
     90 
     91 <div class="columns" style="height: 100px/*everything would fit in 1st column*/">
     92 <div style="padding-top:10px; background:grey">
     93 <div class="grid">
     94 <span class="t"><x></x></span>
     95 <span class="t"><x></x></span>
     96 <span class="t" style="background:cyan"><x></x></span>
     97 </div>
     98 <div style="height:40px;"></div>
     99 <div class="grid" style="padding-bottom:30px">
    100 <span class="b" style="grid-area:1/1; height:6px"><x></x></span>
    101 <span style="align-self:end; grid-area:1/1; background:pink"><x></x></span>
    102 <span class="b"><x></x></span>
    103 <span class="b" style="height:6px; background:cyan"><x></x></span>
    104 </div></div></div>
    105 
    106 <div class="columns" style="height: 100px/*everything would fit in 1st column*/">
    107 <div style="padding-top:10px; background:grey">
    108 <div style="height:90px;"></div>
    109 <div class="grid" style="padding-bottom:18px">
    110 <span style="height:35px"><x></x></span>
    111 <span style="grid-row:span 2"><x></x></span>
    112 <span style="height:35px; background:cyan"><x></x></span>
    113 <span style="grid-area:2/1; align-self:end; background:pink"><x></x></span>
    114 </div>
    115 </div></div>
    116 
    117 <div class="columns" style="height: 97px/*everything would fit in 1st column*/">
    118 <div style="padding-top:10px; background:grey">
    119 <div style="height:87px;"></div>
    120 <div class="grid" style="padding-bottom:15px">
    121 <span style="height:35px"><x></x></span>
    122 <span style="grid-row:span 2"><x></x></span>
    123 <span style="height:35px; background:cyan"><x></x></span>
    124 <span style="grid-area:2/1; align-self:end; background:pink"><x></x></span>
    125 </div>
    126 <div style="height:3px;border:5px solid;box-decoration-break: clone;"></div>
    127 </div></div>
    128 
    129 <div class="columns" style="height: 80px/*one row fits in 1st column, two in 2nd column, but forced break there*/">
    130 <div style="padding-top:30px; background:grey">
    131 <div class="grid">
    132 <span class="t"><x></x></span>
    133 <span class="t" style="background:cyan"><x></x></span>
    134 </div>
    135 <div class="grid" style="padding-bottom:30px">
    136 <span class="b" style="grid-area:1/1; height:6px"><x></x></span>
    137 <span class="b" style="background:cyan"><x></x></span>
    138 <span style="grid-area:1/1; align-self:end; background:pink"><x></x></span>
    139 </div></div>
    140 <div style="height:10px"></div>
    141 <div class="grid m" style="height:0; margin-top:1px">
    142 <span><x></x></span>
    143 </div>
    144 </div>
    145 
    146 <div class="columns" style="height: 160px/*everything would fit in 1st column*/">
    147 <div style="padding-top:30px; background:grey">
    148 <div class="grid">
    149 <span class="t" style="grid-row: span 2"><x></x></span>
    150 <span style="grid-row: span 2"><x></x></span>
    151 </div>
    152 <div style="height:48px"></div>
    153 <div style="height:18px; border:5px solid;">
    154 <span class="b" style="display:block;height:29px;width:28px"></span>
    155 </div>
    156 </div></div>
    157 
    158 </body>
    159 </html>