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('node').remove(); | |
7 } | |
8 onload = runRepaintTest; | |
9 </script> | |
10 | |
11 <style> | 2 <style> |
12 #wrapper { | 3 #wrapper { |
13 visibility: hidden; | 4 visibility: hidden; |
14 position: absolute; | 5 position: absolute; |
15 width: 600px; | 6 width: 600px; |
16 } | 7 } |
17 .outer { float: left; } | 8 .outer { float: left; } |
18 .inner { | 9 .inner { |
19 float: left; | 10 float: left; |
20 height: 100px; | 11 height: 100px; |
21 position: relative; | 12 position: relative; |
22 width: 260px; | 13 width: 260px; |
23 } | 14 } |
24 .abs_pos { position: absolute; } | 15 .abs_pos { position: absolute; } |
25 #container { float: right; } | 16 #container { float: right; } |
26 .item { | 17 .item { |
27 visibility: visible; | 18 visibility: visible; |
28 background-color: green; | 19 background-color: green; |
29 width: 100px; | 20 width: 100px; |
30 height: 100px; | 21 height: 100px; |
31 } | 22 } |
32 #node .item { background-color: red; } | |
33 </style> | 23 </style> |
34 | 24 |
35 <p>This is a reduction for http://crbug.com/371640.</p> | 25 <p>This is a reduction for http://crbug.com/371640.</p> |
36 <p>The test PASSES if you see 1 green square and no red square.</p> | 26 <p>The test PASSES if you see 1 green square and no red square.</p> |
37 | 27 |
38 <div id='wrapper'> | 28 <div id='wrapper'> |
39 <div id='container'> | 29 <div id='container'> |
40 <div id='keep_outer' class='outer'> | 30 <div id='keep_outer' class='outer'> |
41 <div> | 31 <div> |
42 <div id='keep_inner' class='inner'> | 32 <div id='keep_inner' class='inner'> |
43 <div class='abs_pos'> | 33 <div class='abs_pos'> |
44 <div id='keep' class='item'> </div> | 34 <div id='keep' class='item'> </div> |
45 </div> | 35 </div> |
46 </div> | 36 </div> |
47 </div> | 37 </div> |
48 </div> | 38 </div> |
49 | |
50 <div id='node' class='outer'> | |
51 <div id='to_remove_inner' class='inner'> | |
52 <div id='to_remove' class='item'> </div> | |
53 </div> | |
54 </div> | |
55 </div> | 39 </div> |
56 </div> | 40 </div> |
OLD | NEW |