Status: FAIL | Duration: 42ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-page/page-margin-negative-print.tentative.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <link rel="help" href="https://drafts.csswg.org/css-page-3/#page-properties"> <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/8508"> <link rel="match" href="page-margin-negative-print-ref.tentative.html"> <style> @page { size: 300px; margin: -20px; } :root { print-color-adjust: exact; } body { margin: 0; background: yellow; } .fullpager { width: 300px; height: 300px; border: 20px solid red; background: green; } </style> <div class="fullpager"> Green background, no red / yellow. </div>
/css/css-page/page-margin-negative-print-ref.tentative.html
<!DOCTYPE html> <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org"> <style> @page { size: 300px; margin: 0; } :root { print-color-adjust: exact; } body { margin: 0; background: green; } </style> <div> Green background, no red / yellow. </div>