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/margin-boxes/background-001-print.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
<meta name="assert" content="Test background image">
<link rel="match" href="background-001-print-ref.html">
<style>
@page {
margin: 4em;
@top-center {
content: "";
background: url(/images/green.png);
}
}
body {
margin: 0;
}
</style>
The background of the top page margin area should be lime.