summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/page-name-margin-002-print.html
blob: 0ab67f306927dca60147d4fd30f9417a8ee5e590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
  <link rel="match" href="page-name-margin-002-print-ref.html"/>
  <link rel="help" href="https://www.w3.org/TR/css-page-3/#using-named-pages"/>
  <style>
@page a {
    margin: 1in;
}
@page {
    margin: 0;
}
div {
    width: 1cm;
    height: 1cm;
    border: 2px solid blue;
}
  </style>
  <body>
    <div></div>
    <div style="page: a"></div>
  </body>
</html>