wpt / css / css-page / page-size-012-print.html

Status: FAIL | Duration: 39ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi

/css/css-page/page-size-012-print.html

<!DOCTYPE html>
<title>Test vertical writing mode with specified page size and logical margins.</title>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<link rel="help" href="https://www.w3.org/TR/css-page-3/#at-page-rule">
<link rel="help" href="https://www.w3.org/TR/css-page-3/#typedef-page-size-page-size">
<link rel="match" href="page-size-012-print-ref.html">
<style>
  @page {
    size: 600px 400px;
    margin: 0;
    margin-inline-start: 50px;
  }
  @page :first {
    margin-inline-start: 0;
    margin-block-start: 50px;
  }
  :root {
    print-color-adjust: exact;
    writing-mode: vertical-rl;
  }
  body { margin: 0; }
</style>
<div style="background:yellow;">
  50px to the left of page box right edge.<br>
  Page widths larger than heights.<br>
</div>
<div style="break-before:page; background:yellow;">
  50px below the page box top edge.<br>
</div>

/css/css-page/page-size-012-print-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    size: 600px 400px;
    margin: 0;
  }
  :root {
    print-color-adjust: exact;
  }
  body { margin: 0; }
</style>
<div style="margin-left:auto; margin-right:50px; writing-mode:vertical-rl; height:400px; background:yellow;">
  50px to the left of page box right edge.<br>
  Page widths larger than heights.<br>
</div>
<div style="break-before:page;"></div>
<div style="margin-left:auto; margin-top:50px; writing-mode:vertical-rl; height:350px; background:yellow;">
  50px below the page box top edge.<br>
</div>