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