page-size-014-print.html (688B)
1 <!DOCTYPE html> 2 <title>The containing block of the page should be resized in overconstrained sizing situations</title> 3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> 4 <link rel="help" href="https://drafts.csswg.org/css-page-3/#page-model"> 5 <link rel="match" href="page-size-014-print-ref.html"> 6 <style> 7 @page { 8 size: 500px; 9 margin: 10%; 10 width: 40%; 11 height: 60%; 12 } 13 :root { 14 print-color-adjust: exact; 15 } 16 body { 17 margin: 0; 18 } 19 </style> 20 <div style="width:200px; height:300px; background:yellow;"> 21 This page should have a yellow background. Page margins should be 50px on each 22 side. 23 </div> 24 Second page. Nothing else here.