chromium/third_party/blink/web_tests/external/wpt/css/css-page/margin-boxes/dimensions-004-print-ref.html

<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:[email protected]">
<meta name="flags" content="ahem">
<link rel="stylesheet" type="text/css" href="/fonts/ahem.css">
<style>
  html {
    font: 16px/1 Ahem;
  }
  @page {
    margin: 0;
    width: 32em;
    height: 27em;
  }
  body {
    display: grid;
    grid-template-columns: 7em auto 5em;
    grid-template-rows: 4em auto 8em;
    height: 100vh;
    margin: 0;
  }
  .vertical-edge {
    display: flex;
  }
  .horizontal-edge {
    display: flex;
    flex-flow: column;
  }
  .corner {
    border: solid thin;
  }
</style>
<div class="corner">xx</div>
<div class="vertical-edge">
  <div style="width:5em; margin-bottom:2em; background:hotpink;">x</div>
  <div style="width:15em; margin-top:2em; background:yellow;">xxx</div>
</div>
<div class="corner">xx</div>
<div class="horizontal-edge">
  <div style="height:9em; margin-left:4em; background:yellow;">x<br>x<br>x</div>
  <div style="height:6em; margin-right:4em; background:hotpink;">x<br>x</div>
</div>
<div></div>
<div class="horizontal-edge">
  <div style="height:10em; margin-left:3em; background:hotpink;">x<br>x</div>
  <div style="height:5em; margin-right:3em; background:yellow;">xxx</div>
</div>
<div class="corner">xxxx</div>
<div class="vertical-edge">
  <div style="width:17.5em; margin-top:4em; background:yellow;">x x x x</div>
  <div style="width:2.5em; margin-bottom:4em; background:hotpink;">x</div>
</div>
<div class="corner">xxx</div>