| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 body { | 4 body { |
| 5 zoom: 1.2; | 5 zoom: 1.2; |
| 6 padding: 0; | 6 padding: 0; |
| 7 margin: 0; | 7 margin: 0; |
| 8 -webkit-transform-style: perserve-3d; | 8 -webkit-transform-style: perserve-3d; |
| 9 -webkit-perspective: 1000px; | 9 -webkit-perspective: 1000px; |
| 10 } | 10 } |
| 11 | 11 |
| 12 .box { | 12 .box { |
| 13 width: 100px; | 13 width: 100px; |
| 14 height: 100px; | 14 height: 100px; |
| 15 background-color: blue; | 15 background-color: blue; |
| 16 position: absolute; | 16 position: absolute; |
| 17 top: 60px; | 17 top: 60px; |
| 18 left: 40px; | 18 left: 40px; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .translate { | 21 .translate { |
| 22 -webkit-transform: translate(100px, 50px); | 22 transform: translate(100px, 50px); |
| 23 background-color: red; | 23 background-color: red; |
| 24 } | 24 } |
| 25 | 25 |
| 26 .matrix { | 26 .matrix { |
| 27 -webkit-transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 50, 0,
1); | 27 transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 100, 50, 0, 1); |
| 28 background-color: green; | 28 background-color: green; |
| 29 } | 29 } |
| 30 </style> | 30 </style> |
| 31 <script type="text/javascript"> | 31 <script type="text/javascript"> |
| 32 | 32 |
| 33 function runTest() { | 33 function runTest() { |
| 34 if (!window.testRunner) { | 34 if (!window.testRunner) { |
| 35 | 35 |
| 36 var id1 = "a"; | 36 var id1 = "a"; |
| 37 var id2 = "b"; | 37 var id2 = "b"; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 56 </head> | 56 </head> |
| 57 <body onload="runTest();"> | 57 <body onload="runTest();"> |
| 58 | 58 |
| 59 <!-- You should see green box only. If you see red, the test has failed --> | 59 <!-- You should see green box only. If you see red, the test has failed --> |
| 60 | 60 |
| 61 <div id='a' class="box translate"></div> | 61 <div id='a' class="box translate"></div> |
| 62 <div id='b' class="box matrix"></div> | 62 <div id='b' class="box matrix"></div> |
| 63 | 63 |
| 64 </body> | 64 </body> |
| 65 </html> | 65 </html> |
| OLD | NEW |