dimensions-004-print-ref.html (1536B)
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 html { 7 font: 16px/1 Ahem; 8 } 9 @page { 10 margin: 0; 11 width: 32em; 12 height: 27em; 13 } 14 :root { 15 print-color-adjust: exact; 16 } 17 body { 18 display: grid; 19 grid-template-columns: 7em auto 5em; 20 grid-template-rows: 4em auto 8em; 21 height: 100vh; 22 margin: 0; 23 } 24 .vertical-edge { 25 display: flex; 26 } 27 .horizontal-edge { 28 display: flex; 29 flex-flow: column; 30 } 31 .corner { 32 border: solid thin; 33 } 34 </style> 35 <div class="corner">xx</div> 36 <div class="vertical-edge"> 37 <div style="width:5em; margin-bottom:2em; background:hotpink;">x</div> 38 <div style="width:15em; margin-top:2em; background:yellow;">xxx</div> 39 </div> 40 <div class="corner">xx</div> 41 <div class="horizontal-edge"> 42 <div style="height:9em; margin-left:4em; background:yellow;">x<br>x<br>x</div> 43 <div style="height:6em; margin-right:4em; background:hotpink;">x<br>x</div> 44 </div> 45 <div></div> 46 <div class="horizontal-edge"> 47 <div style="height:10em; margin-left:3em; background:hotpink;">x<br>x</div> 48 <div style="height:5em; margin-right:3em; background:yellow;">xxx</div> 49 </div> 50 <div class="corner">xxxx</div> 51 <div class="vertical-edge"> 52 <div style="width:17.5em; margin-top:4em; background:yellow;">x x x x</div> 53 <div style="width:2.5em; margin-bottom:4em; background:hotpink;">x</div> 54 </div> 55 <div class="corner">xxx</div>