summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-page/layers-002-print.html
blob: fb30ba9eb3d063f36439a2f01f8a7d73695e89c2 (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
<!DOCTYPE html>
<html>
  <link rel="match" href="layers-002-print-ref.html"/>
  <link rel="help" href="https://drafts.csswg.org/css-cascade-5/#layering"/>
  <style>
@layer layer2, layer1;
@page b{
    margin: 0;
}
@layer layer1 {
    @page {
        margin: 1cm;
    }
}
@layer layer2 {
    @page {
        margin: 0;
    }
}
div {
    width: 1cm;
    height: 1cm;
    border: 2px solid red;
}
  </style>
  <body>
    <div style="border-color: lightblue"></div>
    <div style="page: b; border-color: pink"></div>
  </body>
</html>