grid-fragmentation-011.html (1336B)
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 with first grid row at top-of-page</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-011-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: 1in; 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 30 </style> 31 </head> 32 <body> 33 34 <div style="background:grey"> 35 <div class="grid"> 36 <span style="grid-row:span 2"><x></x></span> 37 <span style="height:1.5in; background:cyan"><x></x></span> 38 <span><x></x></span> 39 <span style="align-self:end; background:pink"><x></x></span> 40 <span style="grid-row:1"><x></x></span> 41 </div></div> 42 43 </body> 44 </html>