[Release] Webkit-EFL Ver. 2.0_beta_118996_0.6.22
[framework/web/webkit-efl.git] / LayoutTests / printing / page-rule-in-media-query.html
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.layoutTestController)
20     layoutTestController.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>