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 24 matching lines...) Expand all Loading... |
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: 100px; | 39 top: 100px; |
40 height: 200px; | 40 height: 200px; |
41 width: 200px; | 41 width: 200px; |
42 } | 42 } |
43 | 43 |
44 .rotated { | 44 .rotated { |
45 -webkit-transform: translateZ(0) rotate(5deg); | 45 transform: translateZ(0) rotate(5deg); |
46 } | 46 } |
47 | 47 |
48 .counter-rotated { | 48 .counter-rotated { |
49 -webkit-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> | 52 <script src="resources/nested-render-surfaces.js"></script> |
53 <script> | 53 <script> |
54 function setup() { | 54 function setup() { |
55 var description = "This test ensures that clipping works correctly " | 55 var description = "This test ensures that clipping works correctly " |
56 + "with clip children, even if there are rotations involved.\n" | 56 + "with clip children, even if there are rotations involved.\n" |
57 + "if this test is working correctly, all rects should be " | 57 + "if this test is working correctly, all rects should be " |
58 + "clipped by their containing overflow scrolling divs (the\n" | 58 + "clipped by their containing overflow scrolling divs (the\n" |
59 + "fixed position element will have the outer 'counter " | 59 + "fixed position element will have the outer 'counter " |
(...skipping 19 matching lines...) Expand all Loading... |
79 <div class="box"></div> | 79 <div class="box"></div> |
80 <div class="box"></div> | 80 <div class="box"></div> |
81 <div class="box"></div> | 81 <div class="box"></div> |
82 </div> | 82 </div> |
83 </div> | 83 </div> |
84 </div> | 84 </div> |
85 </div> | 85 </div> |
86 </div> | 86 </div> |
87 </body> | 87 </body> |
88 </html> | 88 </html> |
OLD | NEW |