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/page-context-inherits-from-root-font-size-002-print.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
<link rel="match" href="page-context-inherits-from-root-002-print-ref.html">
<style>
:root {
font-size: 20px;
print-color-adjust: exact;
}
@page {
size: 400px 200px;
margin: 2em 4em;
}
body {
margin: 0;
}
div {
height: 100vh;
background: green;
}
</style>
<div></div>
<div></div>