wpt / css / css-page / body-background-vlr-print.html

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

/css/css-page/body-background-vlr-print.html

<!DOCTYPE html>
<link rel="help" href="https://drafts.csswg.org/css-page-3/">
<meta name="assert" content="Body's background is fragmented correctly in vertical-lr writing mode.">
<link rel="match" href="body-background-vlr-print-ref.html">
<style>
  :root {
    print-color-adjust: exact;
    writing-mode: vertical-lr;
  }
  body {
    margin: 0;
    background: linear-gradient(90deg, lightgray 0%, lightgray 50%, white 50%, white 100%)
  }
  @page {
    size: 800px 600px;
    margin: 0;
  }
</style>
<p style="writing-mode:horizontal-tb; position:absolute; right:20px; top:0; width:160px;">
  There should be a top-left-aligned blue box on the first page, and a
  top-aligned hotpink box on the second page.
  The background of the first page is lightgray, and the background of the
  second page is white.
</p>
<div style="width:600px; height:100px; break-inside:avoid; background:blue;"></div>
<div style="width:800px; height:100px; break-inside:avoid; background:hotpink;"></div>

/css/css-page/body-background-vlr-print-ref.html

<!DOCTYPE html>
<style>
  :root {
    print-color-adjust: exact;
  }
  body {
    margin: 0;
  }
  @page {
    size: 800px 600px;
    margin: 0;
  }
</style>
<p style="position:absolute; right:20px; top:0; width:160px;">
  There should be a top-left-aligned blue box on the first page, and a
  top-aligned hotpink box on the second page.
  The background of the first page is lightgray, and the background of the
  second page is white.
</p>
<div style="height:600px; background:lightgray">
  <div style="width:600px; height:100px; background:blue;"></div>
</div>
<div style="width:800px; height:100px; background:hotpink;"></div>