wpt / css / css-page / margin-boxes / dimensions-001-print.html

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

/css/css-page/margin-boxes/dimensions-001-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-dimension">
<meta name="assert" content="Only one box per edge.">
<link rel="match" href="dimensions-001-print-ref.html">
<style>
  @page {
    margin: 100px;
    size: 500px 400px;

    @top-left {
      border: solid;
      text-align: left;
      vertical-align: top;
      width: 20%;
      height: 20%;
      content: "20%";
    }
    @right-middle {
      text-align: left;
      vertical-align: top;
      border: solid;
      width: 70%;
      height: 70%;
      content: "70%";
    }
    @bottom-right {
      text-align: left;
      vertical-align: top;
      border: solid;
      content: "auto";
    }
    @left-bottom {
      text-align: left;
      vertical-align: top;
      border: solid;
      content: "auto";
    }
  }
</style>

/css/css-page/margin-boxes/dimensions-001-print-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    margin: 0;
    size: 500px 400px;
  }
  body {
    margin: 0;
  }
</style>
<div style="display:flex; margin:0 100px; height:100px; align-items:flex-end;">
  <div style="border:solid; width:20%; height:20%;">20%</div>
</div>
<div style="display:flex; height:200px;">
  <div style="display:flex; width:100px;">
    <div style="flex:1; border:solid;">
      auto
    </div>
  </div>
  <div style="flex:1;"></div>
  <div style="display:flex; width:100px;">
    <div style="width:70%; height:70%; margin:auto 0; border:solid;">
      70%
    </div>
  </div>
</div>
<div style="margin:0 100px; height:94px; border:solid;">auto</div>