OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 body { | 6 body { |
7 margin: 0; | 7 margin: 0; |
8 height: 1000px; | 8 height: 1000px; |
9 } | 9 } |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 .fixed { | 21 .fixed { |
22 position: fixed; | 22 position: fixed; |
23 background-color: green; | 23 background-color: green; |
24 height: 100px; | 24 height: 100px; |
25 width: 100px; | 25 width: 100px; |
26 top: 20px; | 26 top: 20px; |
27 left: 20px; | 27 left: 20px; |
28 } | 28 } |
29 | 29 |
30 .composited { | 30 .composited { |
31 -webkit-transform: translateZ(0); | 31 transform: translateZ(0); |
32 } | 32 } |
33 | 33 |
34 .container.two { | 34 .container.two { |
35 left: 200px; | 35 left: 200px; |
36 top: 100px; | 36 top: 100px; |
37 } | 37 } |
38 | 38 |
39 .container.three { | 39 .container.three { |
40 left: 400px; | 40 left: 400px; |
41 top: 100px; | 41 top: 100px; |
42 } | 42 } |
43 | 43 |
44 .box { | 44 .box { |
45 width: 100px; | 45 width: 100px; |
46 height: 100px; | 46 height: 100px; |
47 } | 47 } |
48 | 48 |
49 .composited.box { | 49 .composited.box { |
50 width: 60px; | 50 width: 60px; |
51 height: 60px; | 51 height: 60px; |
52 } | 52 } |
53 | 53 |
54 .transformed { | 54 .transformed { |
55 -webkit-transform: translate(0, 0); | 55 transform: translate(0, 0); |
56 } | 56 } |
57 | 57 |
58 .indicator { | 58 .indicator { |
59 position: absolute; | 59 position: absolute; |
60 background-color: red; | 60 background-color: red; |
61 left: 20px; | 61 left: 20px; |
62 top: 70px; | 62 top: 70px; |
63 } | 63 } |
64 | 64 |
65 .indicator.two { | 65 .indicator.two { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 <div class="container three"> | 102 <div class="container three"> |
103 <div class="transformed box"> | 103 <div class="transformed box"> |
104 <div class="fixed"></div> | 104 <div class="fixed"></div> |
105 </div> | 105 </div> |
106 </div> | 106 </div> |
107 | 107 |
108 <p>You should see no red above.</p> | 108 <p>You should see no red above.</p> |
109 | 109 |
110 </body> | 110 </body> |
111 </html> | 111 </html> |
OLD | NEW |