OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | |
3 <script> | |
4 function repaintTest() | |
5 { | |
6 document.getElementById('remove').style.display='none'; | |
7 } | |
8 onload = runRepaintTest; | |
9 </script> | |
10 <style> | 2 <style> |
11 #wrapper { | 3 #wrapper { |
12 visibility: hidden; | 4 visibility: hidden; |
13 position: absolute; | 5 position: absolute; |
14 width: 600px; | 6 width: 600px; |
15 float: right; | 7 float: right; |
16 } | 8 } |
17 #container { float: right; } | 9 #container { float: right; } |
18 #abs_pos { | 10 #abs_pos { |
19 position: absolute; | 11 position: absolute; |
20 bottom: 0; | 12 bottom: 0; |
21 } | 13 } |
22 #remove_child, | |
23 #keep_child { | 14 #keep_child { |
24 height: 100px; | 15 height: 100px; |
25 width: 100px; | 16 width: 100px; |
26 visibility: visible; | 17 visibility: visible; |
27 } | 18 } |
28 #remove_child { | |
29 background-color: red; | |
30 position: absolute; | |
31 } | |
32 #keep_child { background-color: green; } | 19 #keep_child { background-color: green; } |
33 .outer { | 20 .outer { |
34 float: left; | 21 float: left; |
35 width: 100px; | 22 width: 100px; |
36 height: 300px; | 23 height: 300px; |
37 } | 24 } |
38 #keep_inner { | 25 #keep_inner { |
39 position: relative; | 26 position: relative; |
40 height: 220px; | 27 height: 220px; |
41 } | 28 } |
42 p { visibility: visible; } | 29 p { visibility: visible; } |
43 </style> | 30 </style> |
44 | 31 |
45 <p>This is a reduction for http://crbug.com/371640.</p> | 32 <p>This is a reduction for http://crbug.com/371640.</p> |
46 <p>The test PASSES if you see 1 green square and no red square.</p> | 33 <p>The test PASSES if you see 1 green square and no red square.</p> |
47 | 34 |
48 <div id='wrapper'> | 35 <div id='wrapper'> |
49 <div id='container'> | 36 <div id='container'> |
50 <div id='keep_outer' class='outer'> | 37 <div id='keep_outer' class='outer'> |
51 <div id='keep_inner'> | 38 <div id='keep_inner'> |
52 <div id='abs_pos'> | 39 <div id='abs_pos'> |
53 <div id='keep_child'> </div> | 40 <div id='keep_child'> </div> |
54 </div> | 41 </div> |
55 </div> | 42 </div> |
56 </div> | 43 </div> |
57 <div id='remove' class='outer'> | |
58 <div id='remove_child'> </div> | |
59 </div> | |
60 </div> | 44 </div> |
61 </div> | 45 </div> |
OLD | NEW |