summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/page-left-right-002-print-ref.html
blob: 3480039046aeca2dee76a7d4bdd720ddbac82784 (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
37
38
39
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<style>
  @page {
    size: 600px 300px;
    margin: 0;
  }
  html {
    direction: rtl;
  }
  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-right: 500px;
  }
  div:nth-child(even) {
    margin-top: 200px;
  }
</style>
<div>
  top left corner
</div>
<div>
  bottom right corner
</div>
<div>
  top left corner
</div>
<div>
  bottom right corner
</div>