tor-browser

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

grid-fragmentation-012.html (1502B)


      1 <!DOCTYPE HTML>
      2 <!--
      3     Any copyright is dedicated to the Public Domain.
      4     http://creativecommons.org/publicdomain/zero/1.0/
      5 -->
      6 <html lang="en-US" class="reftest-paged"><head>
      7  <meta charset="utf-8">
      8  <title>CSS Grid Test: Fragmentation in print context of height:auto grid, not top-of-page, forced breaks</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-012-ref.html">
     12  <style type="text/css">
     13 @page { size:5in 3in; margin:0.5in; }
     14 html,body {
     15    color:black; background-color:white; font-size:16px; padding:0; margin:0;
     16 }
     17 
     18 .grid {
     19  display: grid;
     20  grid-template-columns: 0.6in 0.6in 0.6in;
     21  grid-auto-rows: 0.5in;
     22  grid-gap: 0.1in;
     23  border: 0.1in solid;
     24  border-top-width: 0;
     25  align-content: start;
     26 }
     27 span { display:block; background:lime; border:0.05in solid black; }
     28 x { display:block; height:0.2in; }
     29 .break-before { page-break-before:always; break-before:always; }
     30 .break-after { page-break-after:always; break-after:always; }
     31 
     32 </style>
     33 </head>
     34 <body>
     35 
     36 <div style="padding-top:0.5in; background:grey">
     37 <div class="grid">
     38 <span style="grid-row:span 2"><x></x></span>
     39 <span style="height:0.6in; background:cyan"><x></x></span>
     40 <span><x></x></span>
     41 <span class="break-before" style="align-self:end; background:pink"><x></x></span>
     42 <span style="grid-row:1"><x></x></span>
     43 </div></div>
     44 
     45 </body>
     46 </html>