Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / overhanging-float-detach-repaint.html
1 <!DOCTYPE HTML>
2 <html>
3 <head>
4     <script src="resources/repaint.js"></script>
5     <script>
6         if (window.testRunner)
7             testRunner.dumpAsTextWithPixelResults();
8
9     function repaintTest() {
10         var floatContainer = document.getElementById("floatContainer");
11         floatContainer.style.display = "none";
12     }
13
14     window.addEventListener("load", runRepaintTest);
15     </script>
16     <style>
17     .floatWithHeight {
18         float: left;
19         height: 400px;
20     }
21
22     .float {
23         float: left;
24         background-color: red;
25         height: 100px;
26         width: 100px;
27     }
28     </style>
29 </head>
30 <body>
31 <div>
32     <div style="opacity: 0;">
33         <a href="https://bugs.webkit.org/show_bug.cgi?id=105861">Bug 105861</a>: REGRESSION (r132591): Underpainting @ uofmchildrenshospital.org<br>
34         This test checks that overhanging floats are properly repainted when a renderer is detached.<br>
35         This test has PASSED if there is no RED below.
36     </div>
37     <div class="floatWithHeight"></div>
38     <div id="floatContainer">
39         <div class="float"></div>
40     </div>
41 </div>  
42 </body> 
43 </html>