tor-browser

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

grid-fragmentation-017-ref.html (4608B)


      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 grid with first grid row at top-of-page 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 .block {
     29  border:5px solid;
     30  border-top-width:0;
     31  border-bottom-width:10px;
     32 }
     33 .grid {
     34  display: grid;
     35  grid-template-columns: 30px 30px 30px;
     36  grid-auto-rows: 50px;
     37  grid-gap: 12px;
     38  border:5px solid;
     39  border-top-width:0;
     40  border-bottom-width:10px;
     41 }
     42 span { background:lime; border:1px solid black; }
     43 x { display:block; height:20px; }
     44 
     45 .t { border-bottom-width:0; }
     46 .b { border-top-width:0; }
     47 br { page-break-before:always; break-before:always; }
     48 
     49 </style>
     50 </head>
     51 <body>
     52 
     53 <div class="columns" style="height: 120px/*fragmentainer ends in the end border*/">
     54 <div style="background:grey">
     55 <div class="grid">
     56 <span><x></x></span>
     57 <span class="t"><x></x></span>
     58 <span style="background:cyan" class="t"><x></x></span>
     59 </div>
     60 <br>
     61 <div class="grid">
     62 <span><x></x></span>
     63 <span class="b"><x></x></span>
     64 <span class="b" style="grid-row:1; grid-column:3; height:11px; background:cyan"><x></x></span>
     65 <span style="grid-row:1; grid-column:3; align-self:end; background:pink"><x></x></span>
     66 </div></div></div>
     67 
     68 <div class="columns" style="height: 8px/*fragmentainer ends in the end border*/">
     69 <div style="background:grey">
     70 <div class="block">
     71 </div></div></div>
     72 
     73 <div class="columns" style="height: 10px/*fragmentainer ends in the end border*/">
     74 <div style="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: 90px/*fragmentainer ends in the last row*/">
     80 <div style="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: 60px/*fragmentainer ends in the grid gap between the rows */">
     95 <div style="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: 30px/*fragmentainer ends in the first row*/; margin-bottom:30px">
    109 <div style="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: 0px/*zero height fragmentainer*/; margin-bottom:60px">
    123 <div style="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 </body>
    137 </html>