OLD | NEW |
| (Empty) |
1 <!-- Based on fast/repaint/content-into-overflow.html --> | |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> | |
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
4 <head> | |
5 <title>Test for http://bugs.webkit.org/show_bug.cgi?id=12885</title> | |
6 <style type="text/css"> | |
7 div.wide { width: 100px; height: 50px; } | |
8 div.narrow { width: 50px; } | |
9 div.tall { width: 50px; height: 100px; } | |
10 div.short { height: 50px; width: 50px; } | |
11 #main-content { float: left; width: 100px; height: 80px; } | |
12 #target3 { display: none; clear: both; height: 20px; background: green;
} | |
13 </style> | |
14 <script src="resources/paint-invalidation-test.js" type="text/javascript"></
script> | |
15 <script> | |
16 function paintInvalidationTest() | |
17 { | |
18 document.getElementById('target1').style.width = 'auto'; | |
19 document.getElementById('target2').style.height = 'auto'; | |
20 document.getElementById('target3').style.display = 'block'; | |
21 } | |
22 </script> | |
23 </head> | |
24 <body onload="runPaintInvalidationTest();"> | |
25 <div style="position: absolute; border: medium solid green; top: 8px; height
: 100px;"> | |
26 <div class="narrow" id="target1"> | |
27 <div class="wide"></div> | |
28 </div> | |
29 </div> | |
30 | |
31 <div style="position: absolute; border: medium solid green; top: 158px; widt
h: 100px;"> | |
32 <div class="short" id="target2"> | |
33 <div class="tall"></div> | |
34 </div> | |
35 </div> | |
36 | |
37 <div style="position: absolute; top: 308px;"> | |
38 <div style="background: green;"> | |
39 <div style="position: relative;"> | |
40 <div id="main-content"> | |
41 </div> | |
42 </div> | |
43 <div id="target3"></div> | |
44 </div> | |
45 </div> | |
46 </body> | |
47 </html> | |
OLD | NEW |