OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 html { | 6 html { |
7 background-color: red; | 7 background-color: red; |
8 } | 8 } |
9 html.changed { | 9 html.changed { |
10 position: absolute; | 10 position: absolute; |
11 top: 100px; | 11 top: 100px; |
12 left: 100px; | 12 left: 100px; |
13 background-color: green; | 13 background-color: green; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <script src="resources/text-based-repaint.js" type="text/javascript"></script> | 16 <script src="resources/text-based-repaint.js" type="text/javascript"></script> |
17 <script type="text/javascript"> | 17 <script type="text/javascript"> |
18 function repaintTest() | 18 function repaintTest() |
19 { | 19 { |
20 document.documentElement.className = 'changed'; | 20 document.documentElement.className = 'changed'; |
21 } | 21 } |
22 </script> | 22 </script> |
23 </head> | 23 </head> |
24 <body onload="runRepaintTest()"> | 24 <body onload="runRepaintAndPixelTest()"> |
25 <p>Tests that the entire viewport is painted with a floated html element.</p> | 25 <p>Tests that the entire viewport is painted with a floated html element.</p> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |