summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/page-left-right-001-print-ref.html
blob: 1eb011bed8a0dde4a65494d54fc2e2bd9a042080 (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
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    size: 600px 300px;
    margin: 0;
  }
  body {
    margin: 0;
  }
  div {
    break-after: page;
    width: 100px;
    height: 100px;
    overflow: clip; /* Depending on font, glyphs may overflow. */
    background: yellow;
  }
  div:nth-child(odd) {
    margin-top: 200px;
  }
  div:nth-child(even) {
    margin-left: 500px;
  }
</style>
<div>
  bottom left corner
</div>
<div>
  top right corner
</div>
<div>
  bottom left corner
</div>
<div>
  top right corner
</div>