dimensions-012-print-ref.html (1412B)
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 size: 32em 28em; 12 margin: 0; 13 } 14 body { 15 margin: 0; 16 } 17 .grid { 18 display: grid; 19 grid-template-columns: 7em auto 5em; 20 grid-template-rows: 4em auto 8em; 21 height: 100vh; 22 } 23 .vertical-edge { 24 display: flex; 25 } 26 .horizontal-edge { 27 display: flex; 28 flex-flow: column; 29 } 30 </style> 31 <div class="grid"> 32 <div class="corner" style="margin-top:0.5em; margin-left:2em; width:3em; height:3em; background:pink;"> 33 x x<br> 34 x<br> 35 x x<br> 36 </div> 37 <div class="vertical-edge"> 38 <div style="width:4em; background:hotpink;">xxx</div> 39 <div style="margin-left:5em; margin-top:1em; margin-bottom:1em; width:6em; background:yellow;">xx</div> 40 </div> 41 <div class="corner"></div> 42 <div class="horizontal-edge"></div> 43 <div style="background:blue;"></div> 44 <div class="horizontal-edge"> 45 <div style="margin-top:1em; height:3em; background:hotpink;">x<br>x</div> 46 <div style="margin-left:1.25em; margin-top:4em; width:2.5em; height:4em; background:yellow;">x</div> 47 </div> 48 <div class="corner"></div> 49 <div class="vertical-edge"> 50 </div> 51 <div class="corner"></div> 52 </div>