summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/repaint/crbug-371640-3.html
blob: b66b8dd5dc31afab38d3736735c2b2aa2ba8d31e (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
  function repaintTest()
  {
    document.getElementById('remove').style.display='none';
  }
  onload = runRepaintTest;
</script>
<style>
#wrapper {
  visibility: hidden;
  position: absolute;
  width: 600px;
  float: right;
}
#container { float: right; }
#abs_pos {
  position: absolute;
  bottom: 0;
}
#remove_child,
#keep_child {
  height: 100px;
  width: 100px;
  visibility: visible;
}
#remove_child {
  background-color: red;
  position: absolute;
}
#keep_child { background-color: green; }
.outer {
  float: left;
  width: 100px;
  height: 300px;
}
#keep_inner {
  position: relative;
  height: 220px;
}
p { visibility: visible; }
</style>

<p>This is a reduction for http://crbug.com/371640.</p>
<p>The test PASSES if you see 1 green square and no red square.</p>

<div id='wrapper'>
 <div id='container'>
  <div id='keep_outer' class='outer'>
   <div id='keep_inner'>
    <div id='abs_pos'>
     <div id='keep_child'> </div>
    </div>
   </div>
  </div>
  <div  id='remove' class='outer'>
    <div id='remove_child'> </div>
  </div>
 </div>
</div>