Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / svg-layout-transition-zoom.html
blob4f48fc7173703eb940861a0126d76c3d16ce221f
1 <!DOCTYPE>
2 <html>
3 <head>
4 <style>
5 .init {
6 transition-duration: 1s;
7 transition-timing-function: linear;
10 #x {
11 transition-property: x;
13 #x.final {
14 x: 200px;
17 #y {
18 transition-property: y;
20 #y.final {
21 y: 200px;
23 </style>
24 <script src="../animations/resources/animation-test-helpers.js"></script>
25 <script type="text/javascript">
27 const expectedValues = [
28 // [time, element-id, property, expected-value, tolerance]
29 [0.5, 'x', 'x', 150, 20],
30 [0.5, 'y', 'y', 150, 20],
33 function setupTest()
35 document.getElementById('x').setAttribute('class', 'init final');
36 document.getElementById('y').setAttribute('class', 'init final');
39 runTransitionTest(expectedValues, setupTest);
40 </script>
41 </head>
42 <body>
43 <svg style="zoom: 2">
44 <rect x="100" y="100" width="100" height="100" class="init" id="x"/>
45 <rect x="100" y="100" width="100" height="100" class="init" id="y"/>
46 </svg>
48 <div id="result">
49 </div>
51 </body>
52 </html>