OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html><head> | 2 <html><head> |
3 <title>Transform in an empty container test.</title> | 3 <title>Transform in an empty container test.</title> |
4 <style type="text/css"> | 4 <style type="text/css"> |
5 .composited { | 5 .composited { |
6 -webkit-transform: translateZ(0); | 6 transform: translateZ(0); |
7 } | 7 } |
8 .abs { | 8 .abs { |
9 position: absolute; | 9 position: absolute; |
10 } | 10 } |
11 | 11 |
12 .empty-transform { | 12 .empty-transform { |
13 -webkit-transform: matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1)
; | 13 transform: matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1); |
14 width: 0px; | 14 width: 0px; |
15 height: 100px; | 15 height: 100px; |
16 } | 16 } |
17 | 17 |
18 .green { | 18 .green { |
19 background-color: green; | 19 background-color: green; |
20 } | 20 } |
21 .box { | 21 .box { |
22 width: 50px; | 22 width: 50px; |
23 height: 50px; | 23 height: 50px; |
(...skipping 11 matching lines...) Expand all Loading... |
35 <!-- | 35 <!-- |
36 This div has a height, and is transformed to flip things inside it along th
e Y axis. | 36 This div has a height, and is transformed to flip things inside it along th
e Y axis. |
37 While it does not have a width, overflow contents need to be transformed ba
sed on its height still. | 37 While it does not have a width, overflow contents need to be transformed ba
sed on its height still. |
38 --> | 38 --> |
39 <div class="abs empty-transform"> | 39 <div class="abs empty-transform"> |
40 <div class="composited green box"></div> | 40 <div class="composited green box"></div> |
41 </div> | 41 </div> |
42 | 42 |
43 </body> | 43 </body> |
44 </html> | 44 </html> |
OLD | NEW |