| 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: 300px; | 10 height: 300px; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 height: 200px; | 40 height: 200px; |
| 41 width: 200px; | 41 width: 200px; |
| 42 } | 42 } |
| 43 | 43 |
| 44 .clipping-layer { | 44 .clipping-layer { |
| 45 overflow: hidden; | 45 overflow: hidden; |
| 46 width: 150px; | 46 width: 150px; |
| 47 height: 300px; | 47 height: 300px; |
| 48 } | 48 } |
| 49 </style> | 49 </style> |
| 50 <script src="resources/nested-render-surfaces.js"></script> | |
| 51 <script> | |
| 52 function setup() { | |
| 53 var description = "This test ensures that clip children correctly " | |
| 54 + "ignore clips established by layers between the clip parent " | |
| 55 + "and itself. If the test is working correctly, the green " | |
| 56 + "box should be a square."; | |
| 57 runTest(description); | |
| 58 } | |
| 59 window.onload = setup; | |
| 60 </script> | |
| 61 </head> | 50 </head> |
| 51 <!-- |
| 52 This test ensures that clip children correctly ignore clips established by |
| 53 layers between the clip parent and itself. If the test is working correctly, |
| 54 the green box should be a square. |
| 55 --> |
| 62 <body> | 56 <body> |
| 63 <div class="clipping-layer"> | 57 <div class="clipping-layer"> |
| 64 <div class="surface"> | 58 <div class="surface"> |
| 65 <div class="box"></div> | 59 <div class="box"></div> |
| 66 <div class="container"> | 60 <div class="container"> |
| 67 <div> | 61 <div> |
| 68 <div class="box"></div> | 62 <div class="box"></div> |
| 69 <div class="container"> | 63 <div class="container"> |
| 70 <div id="fixed"></div> | 64 <div id="fixed"></div> |
| 71 <div class="box"></div> | 65 <div class="box"></div> |
| 72 <div class="box"></div> | 66 <div class="box"></div> |
| 73 <div class="box"></div> | 67 <div class="box"></div> |
| 74 <div class="box"></div> | 68 <div class="box"></div> |
| 75 <div class="box"></div> | 69 <div class="box"></div> |
| 76 </div> | 70 </div> |
| 77 </div> | 71 </div> |
| 78 </div> | 72 </div> |
| 79 </div> | 73 </div> |
| 80 </div> | 74 </div> |
| 81 </body> | 75 </body> |
| 82 </html> | 76 </html> |
| OLD | NEW |