forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcrbug-371640-4.html
59 lines (57 loc) · 1.24 KB
/
crbug-371640-4.html
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
<!DOCTYPE html>
<script src="resources/text-based-repaint.js"></script>
<script>
function repaintTest()
{
document.getElementById('node').remove();
}
onload = runRepaintAndPixelTest;
</script>
<style>
#wrapper {
visibility: hidden;
position: absolute;
width: 600px;
}
.outer {
display: inline;
position: relative;
float: right;
width: 100px;
height: 100px;
margin-right: 100px;
}
.inner {
float: left;
height: 100px;
position: relative;
width: 100px;
}
.abs_pos { position: absolute; }
#container { float: right; width: 500px}
.item {
visibility: visible;
background-color: green;
width: 100px;
height: 100px;
}
#node .item { background-color: red; }
</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='node' class="outer">
<div id='to_remove_inner' class="inner">
<div id='to_remove' class="item"> </div>
</div>
</div>
<div id='keep_outer' class="outer">
<div class='abs_pos'>
<div id='keep_inner' class="inner">
<div id='keep' class="item"> </div>
</div>
</div>
</div>
</div>
</div>