Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / paint / invalidation / spv2 / content-into-overflow.html
blob68a34a8d6d23c1977b92c54b4a2b8e4b53c5d597
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/xhtml1/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 window.expectedPaintInvalidationObjects = [
17 "LayoutBlockFlow (positioned) DIV",
18 "LayoutBlockFlow (positioned) DIV",
19 "LayoutBlockFlow DIV",
20 "LayoutBlockFlow DIV id='target3'",
22 function paintInvalidationTest()
24 document.getElementById('target1').style.width = 'auto';
25 document.getElementById('target2').style.height = 'auto';
26 document.getElementById('target3').style.display = 'block';
28 </script>
29 </head>
30 <body onload="runPaintInvalidationTest();">
31 <div style="position: absolute; border: medium solid green; top: 8px; height: 100px;">
32 <div class="narrow" id="target1">
33 <div class="wide"></div>
34 </div>
35 </div>
37 <div style="position: absolute; border: medium solid green; top: 158px; width: 100px;">
38 <div class="short" id="target2">
39 <div class="tall"></div>
40 </div>
41 </div>
43 <div style="position: absolute; top: 308px;">
44 <div style="background: green;">
45 <div style="position: relative;">
46 <div id="main-content">
47 </div>
48 </div>
49 <div id="target3"></div>
50 </div>
51 </div>
52 </body>
53 </html>