summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/page-size-012-print.html
blob: 737b37cbc3dbe30f83e9cae3eaf4582f5cf2e04d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!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;
  }
  html {
    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>