blob: b097fbb8fc0f540c4701497196ad77a55e0ce818 (
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-001-print-ref.html"/>
<link rel="help" href="https://drafts.csswg.org/css-cascade-5/#layering"/>
<style>
@layer layer1, layer2;
@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>
|