Upstream version 10.38.222.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / overflow / abs-rel-pos-invalidation.html
1 <!DOCTYPE html>
2 <script src="../repaint/resources/text-based-repaint.js"></script>
3 <script>
4     function repaintTest()
5     {
6         var div1 = document.getElementById("div1");
7         var div2 = document.getElementById("div2");
8         div1.style.overflow = 'visible';
9         div2.style.display = 'block';
10         document.body.offsetTop;
11         div1.style.overflow = 'hidden';
12         div2.style.display = 'none';
13     }
14 </script>
15 <style>
16     #div1 {
17         position: relative;
18         width: 100px;
19         height: 100px;
20         overflow: hidden;
21         background: #f00;
22     }
23     #div2 {
24         position: absolute;
25         left: 100px;
26         top: 0;
27         display: none;
28         width: 300px;
29         height: 300px;
30         background: #00f;
31     }
32 </style>
33 <body onload="runRepaintTest()">
34     <div id="div1">
35         <div id="div2"></div>
36     </div>
37     <p>crbug.com/377520: Invalidate the rect of an element that is being removed from the tree even when it is overflow-clipped at the time of invalidation.</p>
38 </body>
39