OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13544</title> | 3 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=13544</title> |
4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> | 4 <script src="resources/text-based-repaint.js" type="text/javascript"></scrip
t> |
5 <script type="text/javascript"> | 5 <script type="text/javascript"> |
6 function repaintTest() | 6 function repaintTest() |
7 { | 7 { |
8 var div = document.getElementById("target"); | 8 var div = document.getElementById("target"); |
9 div.style.visibility = 'hidden'; | 9 div.style.visibility = 'hidden'; |
10 // Now make this a layout hint to avoid the repaint done in setStyle
(). | 10 // Now make this a layout hint to avoid the repaint done in setStyle
(). |
11 div.style.width = '50px'; | 11 div.style.width = '50px'; |
12 } | 12 } |
13 </script> | 13 </script> |
14 </head> | 14 </head> |
15 <body onload="runRepaintTest()"> | 15 <body onload="runRepaintAndPixelTest()"> |
16 <div style="position: relative;"> | 16 <div style="position: relative;"> |
17 <div style="background: green; width: 100px; height: 100px;"> | 17 <div style="background: green; width: 100px; height: 100px;"> |
18 </div> | 18 </div> |
19 <div id="target" style="position: absolute; top: 0; width: 100px; height
: 100px; background: red;"> | 19 <div id="target" style="position: absolute; top: 0; width: 100px; height
: 100px; background: red;"> |
20 </div> | 20 </div> |
21 </div> | 21 </div> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |