tor-browser

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

grid-fragmentation-004.html (3765B)


      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>CSS Grid Test: Fragmentation with first grid row at top-of-page and Class C break opportunities</title>
      9  <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
     10  <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
     11  <link rel="match" href="grid-fragmentation-004-ref.html">
     12  <style type="text/css">
     13 html,body {
     14    color:black; background-color:white; font-size:16px; padding:0; margin:0;
     15 }
     16 body { overflow:hidden; }
     17 
     18 .columns {
     19  position:relative;
     20      -ms-columns: 5;
     21  -webkit-columns: 5;
     22          columns: 5;
     23      -ms-column-fill: auto;
     24  -webkit-column-fill: auto;
     25          column-fill: auto;
     26  border: 2px solid salmon;
     27  margin-bottom: 5px;
     28 }
     29 
     30 .grid {
     31  display: grid;
     32  grid-template-columns: 30px 30px 30px;
     33  grid-auto-rows: 50px;
     34  grid-gap: 12px;
     35  border:5px solid;
     36  border-top-width: 0;
     37  border-bottom-width: 10px;
     38  height: 120px; /* 4px before/after first/last row are Class C break opportunities */
     39  align-content: center;
     40 }
     41 span { background:lime; border:1px solid black; }
     42 x { display:block; height:20px; }
     43 
     44 </style>
     45 </head>
     46 <body>
     47 
     48 <div class="columns" style="height: 122px/*fragmentainer ends in the end border*/">
     49 <div style="background:grey">
     50 <div class="grid">
     51 <span style="grid-row:span 2"><x></x></span>
     52 <span style="height:60px; background:cyan"><x></x></span>
     53 <span><x></x></span>
     54 <span style="align-self:end; background:pink"><x></x></span>
     55 <span style="grid-row:1"><x></x></span>
     56 </div></div></div>
     57 
     58 <div class="columns" style="height: 122px/*fragmentainer ends in the end border*/">
     59 <div style="background:grey">
     60 <div class="grid">
     61 </div></div></div>
     62 
     63 <div class="columns" style="height: 90px/*fragmentainer ends in the last row*/">
     64 <div style="background:grey">
     65 <div class="grid">
     66 <span style="grid-row:span 2"><x></x></span>
     67 <span style="height:60px; background:cyan"><x></x></span>
     68 <span style="align-self:end; background:pink"><x></x></span>
     69 <span style="grid-row:1; height:60px"><x></x></span>
     70 </div></div></div>
     71 
     72 <div class="columns" style="height: 60px/*fragmentainer ends in the grid gap between the rows */">
     73 <div style="background:grey">
     74 <div class="grid">
     75 <span style="grid-row:span 2"><x></x></span>
     76 <span style="height:60px; background:cyan"><x></x></span>
     77 <span style="align-self:end; background:pink"><x></x></span>
     78 <span style="grid-row:1; height:60px"><x></x></span>
     79 </div></div></div>
     80 
     81 <!--  TODO XXX depends on bug 1238294
     82 
     83 <div class="columns" style="height: 30px/*fragmentainer ends in the first row*/; margin-bottom:30px">
     84 <div style="background:grey">
     85 <div class="grid">
     86 <span style="grid-row:span 2"><x></x></span>
     87 <span style="height:60px; background:cyan"><x></x></span>
     88 <span style="align-self:end; background:pink"><x></x></span>
     89 <span style="grid-row:1; height:60px"><x></x></span>
     90 </div></div></div>
     91 
     92 <div class="columns" style="height: 0px/*zero height fragmentainer*/; margin-bottom:60px">
     93 <div style="background:grey">
     94 <div class="grid">
     95 <span style="grid-row:span 2"><x></x></span>
     96 <span style="height:60px; background:cyan"><x></x></span>
     97 <span style="align-self:end; background:pink"><x></x></span>
     98 <span style="grid-row:1; height:60px"><x></x></span>
     99 </div></div></div>
    100 
    101 <div class="columns" style="height: 2px/*fragmentainer ends between the start border but before the first row */">
    102 <div style="background:grey">
    103 <div class="grid">
    104 <span style="height:60px; background:cyan"><x></x></span>
    105 <span style="grid-row:span 2"><x></x></span>
    106 <span><x></x></span>
    107 <span style="grid-row:1"><x></x></span>
    108 </div></div></div>
    109 
    110 -->
    111 
    112 </body>
    113 </html>