eric@webkit.org | e6bf416 | 2008-07-09 23:17:50 +0000 | [diff] [blame] | 1 | <html> |
| 2 | <style> |
| 3 | div { |
| 4 | background: red; |
| 5 | width: 100px; |
| 6 | height: 100px; |
| 7 | } |
| 8 | @media print { |
| 9 | div { |
| 10 | background: green; |
| 11 | } |
| 12 | span { |
| 13 | font-style: italic; |
| 14 | } |
| 15 | } |
| 16 | </style> |
| 17 | <script> |
| 18 | if (window.layoutTestController) |
hamaji@chromium.org | fbee966 | 2010-04-28 07:30:16 +0000 | [diff] [blame] | 19 | layoutTestController.setPrinting(); |
eric@webkit.org | e6bf416 | 2008-07-09 23:17:50 +0000 | [diff] [blame] | 20 | </script> |
| 21 | <body> |
| 22 | <div></div> |
| 23 | <span>When printing, you should see a green square above and this text should be italic.</span> |
| 24 | </body> |
| 25 | </html> |