grid-fragmentation-014-ref.html (1177B)
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>Reference: Fragmentation in print context of height:auto grid, item break-inside:avoid</title> 9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096"> 10 <style type="text/css"> 11 @page { size:5in 3in; margin:0.5in; } 12 html,body { 13 color:black; background-color:white; font-size:16px; padding:0; margin:0; 14 } 15 16 .grid { 17 display: grid; 18 grid-template-columns: 0.6in 0.6in 0.6in; 19 grid-auto-rows: 1in; 20 border: 0.1in solid; 21 } 22 span { display:block; background:lime; border:0.05in solid black; } 23 x { display:block; height:0.2in; } 24 i { display:block; height:0.1in; background:blue; } 25 26 </style> 27 </head> 28 <body> 29 30 <div style="padding-top:1in; background:grey"> 31 <div class="grid" style="grid-template-rows: .91in 1in;"> 32 <span style="height:0.2in"><i style="height:1.5in"></i><x></x></span> 33 <span style="height:0.25in"><i></i><i></i><i></i><x></x></span> 34 <span style="grid-area:2/2"><x></x></span> 35 </div> 36 37 38 </body> 39 </html>