summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/pseudo-first-margin-003-print.html
blob: 9bb953bfa0a9f4a30567ada713300dca4508ef17 (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
<!DOCTYPE html>
<html>
  <link rel="match" href="pseudo-first-margin-print-ref.html"/>
  <link rel="help" href="https://www.w3.org/TR/css-page-3/#first-pseudo"/>
  <style>
@page :first {
    margin: 2cm;
}
@page a {
    margin: 1cm;
}
@page {
    margin: 0;
}
div {
    width: 1cm;
    height: 1cm;
    border: 2px solid red;
}
  </style>
  <body>
    <div style="page: a; border-color: lightblue"></div>
    <div style="border-color: pink"></div>
  </body>
</html>