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