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

Side by Side Diff: LayoutTests/transforms/transform-inherit-initial-unprefixed.html

Issue 285643006: Kill WTF::DecimalNumber class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Inline single-line function Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../resources/js-test.js"></script> 4 <script src="../resources/js-test.js"></script>
5 <style> 5 <style>
6 #base { 6 #base {
7 transform: rotate(60deg); 7 transform: rotate(60deg);
8 transform-origin:20% 40%; 8 transform-origin:20% 40%;
9 transform-style: preserve-3d; 9 transform-style: preserve-3d;
10 } 10 }
(...skipping 20 matching lines...) Expand all
31 <script> 31 <script>
32 description("Test that inherit and initial works on unprefixed transforms.") 32 description("Test that inherit and initial works on unprefixed transforms.")
33 33
34 var testContainer = document.createElement("div"); 34 var testContainer = document.createElement("div");
35 document.body.appendChild(testContainer); 35 document.body.appendChild(testContainer);
36 36
37 e = document.getElementById('inherit'); 37 e = document.getElementById('inherit');
38 computedStyle = window.getComputedStyle(e, null); 38 computedStyle = window.getComputedStyle(e, null);
39 39
40 debug("Testing inherit."); 40 debug("Testing inherit.");
41 shouldBe("computedStyle.transform", "'matrix(0.5000000000000001, 0.8660254037844 386, -0.8660254037844386, 0.5000000000000001, 0, 0)'"); 41 shouldBe("computedStyle.transform", "'matrix(0.5, 0.866025403784439, -0.86602540 3784439, 0.5, 0, 0)'");
42 shouldBe("computedStyle.webkitTransform", "'matrix(0.5000000000000001, 0.8660254 037844386, -0.8660254037844386, 0.5000000000000001, 0, 0)'"); 42 shouldBe("computedStyle.webkitTransform", "'matrix(0.5, 0.866025403784439, -0.86 6025403784439, 0.5, 0, 0)'");
43 shouldBe("computedStyle.transformOrigin", "'100px 0px'"); 43 shouldBe("computedStyle.transformOrigin", "'100px 0px'");
44 shouldBe("computedStyle.webkitTransformOrigin", "'100px 0px'"); 44 shouldBe("computedStyle.webkitTransformOrigin", "'100px 0px'");
45 shouldBe("computedStyle.transformStyle", "'preserve-3d'"); 45 shouldBe("computedStyle.transformStyle", "'preserve-3d'");
46 shouldBe("computedStyle.webkitTransformStyle", "'preserve-3d'"); 46 shouldBe("computedStyle.webkitTransformStyle", "'preserve-3d'");
47 47
48 e = document.getElementById('initial'); 48 e = document.getElementById('initial');
49 computedStyle = window.getComputedStyle(e, null); 49 computedStyle = window.getComputedStyle(e, null);
50 debug("Testing initial."); 50 debug("Testing initial.");
51 51
52 shouldBe("computedStyle.transform", "'none'"); 52 shouldBe("computedStyle.transform", "'none'");
53 shouldBe("computedStyle.webkitTransform", "'none'"); 53 shouldBe("computedStyle.webkitTransform", "'none'");
54 shouldBe("computedStyle.transformOrigin", "'250px 0px'"); 54 shouldBe("computedStyle.transformOrigin", "'250px 0px'");
55 shouldBe("computedStyle.webkitTransformOrigin", "'250px 0px'"); 55 shouldBe("computedStyle.webkitTransformOrigin", "'250px 0px'");
56 shouldBe("computedStyle.transformStyle", "'flat'"); 56 shouldBe("computedStyle.transformStyle", "'flat'");
57 shouldBe("computedStyle.webkitTransformStyle", "'flat'"); 57 shouldBe("computedStyle.webkitTransformStyle", "'flat'");
58 58
59 document.body.removeChild(testContainer); 59 document.body.removeChild(testContainer);
60 </script> 60 </script>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698