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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 .rotated { | 44 .rotated { |
45 transform: translateZ(0) rotate(5deg); | 45 transform: translateZ(0) rotate(5deg); |
46 } | 46 } |
47 | 47 |
48 .counter-rotated { | 48 .counter-rotated { |
49 transform: translateZ(0) rotate(-9deg); | 49 transform: translateZ(0) rotate(-9deg); |
50 } | 50 } |
51 </style> | 51 </style> |
52 <script src="resources/nested-render-surfaces.js"></script> | |
53 <script> | |
54 function setup() { | |
55 var description = "This test ensures that clipping works correctly " | |
56 + "with clip children, even if there are rotations involved.\n" | |
57 + "if this test is working correctly, all rects should be " | |
58 + "clipped by their containing overflow scrolling divs (the\n" | |
59 + "fixed position element will have the outer 'counter " | |
60 + "rotate' div as its containing block due to the rotation,\n" | |
61 + "not the viewport, and will therefore get clipped by the " | |
62 + "outer overflow scrolling div, but not the inner."; | |
63 runTest(description); | |
64 } | |
65 window.onload = setup; | |
66 </script> | |
67 </head> | 52 </head> |
| 53 <!-- |
| 54 This test ensures that clipping works correctly with clip children, even if |
| 55 there are rotations involved. if this test is working correctly, all rects |
| 56 should be clipped by their containing overflow scrolling divs (the fixed |
| 57 position element will have the outer 'counter rotate' div as its containing |
| 58 block due to the rotation, not the viewport, and will therefore get clipped by |
| 59 the outer overflow scrolling div, but not the inner. |
| 60 --> |
68 <body> | 61 <body> |
69 <div class="rotated"> | 62 <div class="rotated"> |
70 <div class="surface"> | 63 <div class="surface"> |
71 <div class="box"></div> | 64 <div class="box"></div> |
72 <div class="container"> | 65 <div class="container"> |
73 <div class="surface counter-rotated"> | 66 <div class="surface counter-rotated"> |
74 <div class="box"></div> | 67 <div class="box"></div> |
75 <div class="container"> | 68 <div class="container"> |
76 <div id="fixed"></div> | 69 <div id="fixed"></div> |
77 <div class="box"></div> | 70 <div class="box"></div> |
78 <div class="box"></div> | 71 <div class="box"></div> |
79 <div class="box"></div> | 72 <div class="box"></div> |
80 <div class="box"></div> | 73 <div class="box"></div> |
81 <div class="box"></div> | 74 <div class="box"></div> |
82 </div> | 75 </div> |
83 </div> | 76 </div> |
84 </div> | 77 </div> |
85 </div> | 78 </div> |
86 </div> | 79 </div> |
87 </body> | 80 </body> |
88 </html> | 81 </html> |
OLD | NEW |