OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | |
4 <script src="resources/text-based-repaint.js"></script> | |
5 <script> | |
6 if (window.testRunner) | |
7 testRunner.waitUntilDone(); | |
8 | |
9 function repaintTest() | |
10 { | |
11 document.getElementById('ref').style.display = 'block'; | |
12 if (window.testRunner) | |
13 testRunner.notifyDone(); | |
14 } | |
15 onload = runRepaintTest; | |
16 </script> | |
17 </head> | |
18 <style> | 3 <style> |
19 #ref { | 4 #ref { |
20 display: none; | 5 display: block; |
21 min-width: 20em; | 6 min-width: 20em; |
22 height: 10em; | 7 height: 10em; |
23 position: absolute; | 8 position: absolute; |
24 bottom: 5px; | 9 bottom: 5px; |
25 border: 1px solid; | 10 border: 1px solid; |
26 background-color: #0f0; | 11 background-color: #0f0; |
27 } | 12 } |
28 .wrapper{ | 13 .wrapper{ |
29 position: relative; | 14 position: relative; |
30 } | 15 } |
31 .spaced{ | 16 .spaced{ |
32 padding-top: 300px; | 17 padding-top: 300px; |
33 width: 10em; | 18 width: 10em; |
34 } | 19 } |
35 </style> | 20 </style> |
36 <p> | 21 <p> |
37 This tests that the repaint of absolutely positioned elements inside | 22 This tests that the repaint of absolutely positioned elements inside |
38 relatively positioned inline blocks works correclty. | 23 relatively positioned inline blocks works correclty. |
39 <a href="http://crbug.com/370945">crbug.com/370945</a> | 24 <a href="http://crbug.com/370945">crbug.com/370945</a> |
40 </p> | 25 </p> |
41 <p>You should see a green rectangle without any missing pieces if this test pass
ed. </p> | 26 <p>You should see a green rectangle without any missing pieces if this test pass
ed. </p> |
42 | 27 |
43 <p class='spaced'> | 28 <p class='spaced'> |
44 <span class='wrapper'> | 29 <span class='wrapper'> |
45 <span id="ref"></span> | 30 <span id="ref"></span> |
46 </span> | 31 </span> |
47 </p> | 32 </p> |
48 | 33 |
OLD | NEW |