grid-fragmentation-010.html (1314B)
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</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-010-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 align-content: start; 25 } 26 span { display:block; background:lime; border:0.05in solid black; } 27 x { display:block; height:0.2in; } 28 29 </style> 30 </head> 31 <body> 32 33 <div style="padding-top:0.5in; background:grey"> 34 <div class="grid"> 35 <span style="grid-row:span 2"><x></x></span> 36 <span style="height:1.5in; background:cyan"><x></x></span> 37 <span><x></x></span> 38 <span style="align-self:end; background:pink"><x></x></span> 39 <span style="grid-row:1"><x></x></span> 40 </div></div> 41 42 </body> 43 </html>