Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transforms / 2d / transform-accuracy.html
blob690911eb04350ca4830db4efe852837eab80359f
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Testing accuracy of transform evaluation</title>
8 <style type="text/css" media="screen">
9 .container {
10 height: 100px;
11 width: 200px;
12 margin: 30px;
13 outline: 1px solid black;
15 .box {
16 height: 100%;
17 width: 100%;
18 background-color: green;
19 transform: rotate(90deg);
21 #results {
22 margin-top: 100px;
24 </style>
25 <script src="resources/transform-test-utils.js" type="text/javascript" charset="utf-8"></script>
26 <script type="text/javascript" charset="utf-8">
27 if (window.testRunner) {
28 testRunner.dumpAsText();
29 testRunner.waitUntilDone();
32 var gTests = [
33 { 'transform' : 'scale(0.0000001) scale(10000000)', 'result' : 'matrix(1, 0, 0, 1, 0, 0)' },
34 { 'transform' : 'rotate(-10deg) rotate(10deg) rotate(360deg) rotate(-360deg) rotate(360deg)', 'result' : 'matrix(1, 0, 0, 1, 0, 0)' },
35 { 'transform' : 'translate(10000000px) translate(-10000000px)', 'result' : 'matrix(1, 0, 0, 1, 0, 0)' },
38 function runTests()
40 testTransforms();
42 if (window.testRunner)
43 testRunner.notifyDone();
45 </script>
46 </head>
47 <body onload="runTests()">
49 <div class="container">
50 <div id="test-box" class="box"></div>
51 </div>
53 <div id="results">
54 </div>
55 </body>
56 </html>