Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<link rel="match" href="layers-001-print-ref.html"/>
<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>