Revision control

1
<!doctype html>
2
<html>
3
<head>
4
<title>Test for Bug 40452 - REGRESSION: printing is broken if stylesheet has @page</title>
5
<style>
6
* {
7
margin: 1px;
8
}
9
div {
10
border: 1px solid black;
11
}
12
@media print {
13
@page {
14
margin: 0.5in;
15
}
16
}
17
</style>
18
<script>
19
if (window.testRunner)
20
testRunner.setPrinting();
21
</script>
22
</head>
23
<body>
24
<div>DIV 1
25
<div>
26
DIV 2
27
<div>
28
The margins of divs should remain 1px in printing.
29
</div>
30
</div>
31
</div>
32
</body>
33
</html>