dimensions-005-print-ref.html (1271B)
1 <!DOCTYPE html> 2 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 3 <meta name="flags" content="ahem"> 4 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css"> 5 <style> 6 :root { 7 print-color-adjust: exact; 8 font: 16px/1 Ahem; 9 } 10 @page { 11 margin: 0; 12 width: 32em; 13 height: 27em; 14 } 15 body { 16 display: grid; 17 grid-template-columns: 6em auto 6em; 18 grid-template-rows: 6em auto 6em; 19 height: 100vh; 20 margin: 0; 21 } 22 .vertical-edge { 23 display: flex; 24 } 25 .horizontal-edge { 26 display: flex; 27 flex-flow: column; 28 } 29 </style> 30 <div class="corner"></div> 31 <div class="vertical-edge"> 32 <div style="width:7.5em; margin-bottom:4em; background:hotpink;">xxx</div> 33 <div style="width:5em; margin-top:2em; margin-bottom:2em; background:cyan;">xx</div> 34 <div style="width:7.5em; margin-top:4em; background:yellow;">xx</div> 35 </div> 36 <div class="corner"></div> 37 <div class="horizontal-edge"></div> 38 <div></div> 39 <div class="horizontal-edge"> 40 <div style="height:5.625em; margin-right:4em; background:hotpink;">x<br>x<br>x</div> 41 <div style="height:3.75em; margin-left:2em; margin-right:2em; background:cyan;">x<br>x</div> 42 <div style="height:5.625em; margin-left:4em; background:yellow;">x<br>x</div> 43 </div>