| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 body { | 5 body { |
| 6 height: 2000px; | 6 height: 2000px; |
| 7 } | 7 } |
| 8 | 8 |
| 9 .container { | 9 .container { |
| 10 height: 200px; | 10 height: 200px; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #fixed { | 34 #fixed { |
| 35 position: fixed; | 35 position: fixed; |
| 36 z-index: 0; | 36 z-index: 0; |
| 37 background-color: green; | 37 background-color: green; |
| 38 left: 50px; | 38 left: 50px; |
| 39 top: 200px; | 39 top: 200px; |
| 40 height: 200px; | 40 height: 200px; |
| 41 width: 200px; | 41 width: 200px; |
| 42 } | 42 } |
| 43 </style> | 43 </style> |
| 44 <script src="resources/nested-render-surfaces.js"></script> | |
| 45 <script> | |
| 46 function setup() { | |
| 47 var description = "This test ensures that render surfaces grow to " | |
| 48 + "accomodate clip children. If this test is working, you " | |
| 49 + "should see that the green box is square."; | |
| 50 runTest(description); | |
| 51 } | |
| 52 window.onload = setup; | |
| 53 </script> | |
| 54 </head> | 44 </head> |
| 45 <!-- |
| 46 This test ensures that render surfaces grow to accomodate clip children. |
| 47 If this test is working, you should see that the green box is square. |
| 48 --> |
| 55 <body> | 49 <body> |
| 56 <div class="surface"> | 50 <div class="surface"> |
| 57 <div class="box"></div> | 51 <div class="box"></div> |
| 58 <div class="container"> | 52 <div class="container"> |
| 59 <div> | 53 <div> |
| 60 <div class="box"></div> | 54 <div class="box"></div> |
| 61 <div class="container"> | 55 <div class="container"> |
| 62 <div id="fixed"></div> | 56 <div id="fixed"></div> |
| 63 <div class="box"></div> | 57 <div class="box"></div> |
| 64 <div class="box"></div> | 58 <div class="box"></div> |
| 65 <div class="box"></div> | 59 <div class="box"></div> |
| 66 <div class="box"></div> | 60 <div class="box"></div> |
| 67 <div class="box"></div> | 61 <div class="box"></div> |
| 68 </div> | 62 </div> |
| 69 </div> | 63 </div> |
| 70 </div> | 64 </div> |
| 71 </div> | 65 </div> |
| 72 </body> | 66 </body> |
| 73 </html> | 67 </html> |
| OLD | NEW |