wpt / css / css-page / margin-boxes / inapplicable-properties-print.html

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

/css/css-page/margin-boxes/inapplicable-properties-print.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/#margin-property-list">
<meta name="assert" content="Test that inapplicable properties are ignored.">
<link rel="match" href="inapplicable-properties-print-ref.html">
<style>
  :root {
    print-color-adjust: exact;
  }
  @page {
    size: 400px;
    margin: 100px;

    @top-left-corner {
      text-align: left;
      vertical-align: top;
      white-space: pre-wrap;
      content: "Line 1\aLine 2";
      position: relative;
      display: none;
      columns: 2;
      column-rule: solid red;
      orphans: 1;
      widows: 1;
      rotate: 45deg;
      top: 50px;
      left: 90px;
      width: 100px;
      height:100px;
      background: green;
    }
  }
  body {
    margin: 0;
  }
</style>
In the top left corner there should be a green square with two lines inside.

/css/css-page/margin-boxes/inapplicable-properties-print-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    size: 400px;
    margin: 0;
  }
  :root {
    print-color-adjust: exact;
  }
  body {
    margin: 0;
  }
</style>
<div style="width:100px; height:100px; background:green;">
  Line 1<br>
  Line 2
</div>
<div style="margin-left:100px; margin-right:100px;">
  In the top left corner there should be a green square with two lines inside.
</div>