Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Side by Side Diff: LayoutTests/transforms/3d/general/matrix-with-zoom-3d.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW
« no previous file with comments | « LayoutTests/transforms/3d/general/cssmatrix-3d-zoom.html ('k') | LayoutTests/transforms/3d/general/perspective-units.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698