summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/box-inline-resize.html
blob: 84de8b28b037462bb49bec32affabde375f5927f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!doctype html>
<head>
 <script src="resources/text-based-repaint.js"></script>
 <style>
 #about-container {
   display: -webkit-box;
 }
 #foo {
   background-color: green;
   width: 0px;
   height: 0px;
 }
 </style>
 <script type="text/javascript">
   window.testIsAsync = true;

   function repaintTest() {
     setTimeout(function() {
       var i = document.getElementById('foo');
       i.style.width = "32px";
       i.style.height = "32px";
       finishRepaintTest();
     }, 50);
   };
   onload = runRepaintTest;
 </script>
</head>

<p>Test for http://crbug.com/360453</p>
<p>You should see an invalidation at x=40 of the h2 or this test is broken.</p>

<div id="about-container">
 <img id='foo'/>
 <h2>Chromium</h2>
</div>