Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-page/pseudo-first-margin-002-print.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html>
<link rel="match" href="pseudo-first-margin-print-ref.html"/>
<style>
@page b {
margin: 0;
}
@page a:first {
margin: 1cm;
}
@page :first {
margin: 2cm;
}
div {
width: 1cm;
height: 1cm;
border: 2px solid red;
}
</style>
<body>
<div style="page: a; border-color: lightblue"></div>
<div style="page: b; border-color: pink"></div>
</body>
</html>