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

Side by Side Diff: LayoutTests/transitions/svg-layout-transition-zoom.html

Issue 947983002: Move zoom handling for x and y properties to svg (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: move function Created 5 years, 10 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 <!DOCTYPE> 1 <!DOCTYPE>
2
3 <html> 2 <html>
4 <head> 3 <head>
5 <style> 4 <style>
6 .init { 5 .init {
7 transition-duration: 1s; 6 transition-duration: 1s;
8 transition-timing-function: linear; 7 transition-timing-function: linear;
9 } 8 }
10 9
11 #x { 10 #x {
12 transition-property: x; 11 transition-property: x;
(...skipping 10 matching lines...) Expand all
23 } 22 }
24 </style> 23 </style>
25 <script src="../animations/resources/animation-test-helpers.js"></script> 24 <script src="../animations/resources/animation-test-helpers.js"></script>
26 <script type="text/javascript"> 25 <script type="text/javascript">
27 26
28 const expectedValues = [ 27 const expectedValues = [
29 // [time, element-id, property, expected-value, tolerance] 28 // [time, element-id, property, expected-value, tolerance]
30 [0.5, 'x', 'x', 150, 20], 29 [0.5, 'x', 'x', 150, 20],
31 [0.5, 'y', 'y', 150, 20], 30 [0.5, 'y', 'y', 150, 20],
32 ]; 31 ];
33 32
34 function setupTest() 33 function setupTest()
35 { 34 {
36 document.getElementById('x').setAttribute('class', 'init final'); 35 document.getElementById('x').setAttribute('class', 'init final');
37 document.getElementById('y').setAttribute('class', 'init final'); 36 document.getElementById('y').setAttribute('class', 'init final');
38 } 37 }
39 38
40 runTransitionTest(expectedValues, setupTest); 39 runTransitionTest(expectedValues, setupTest);
41 </script> 40 </script>
42 </head> 41 </head>
43 <body> 42 <body>
44 <svg> 43 <svg style="zoom: 2">
45 <rect x="100" y="100" width="100" height="100" class="init" id="x"/> 44 <rect x="100" y="100" width="100" height="100" class="init" id="x"/>
46 <rect x="100" y="100" width="100" height="100" class="init" id="y"/> 45 <rect x="100" y="100" width="100" height="100" class="init" id="y"/>
47 </svg> 46 </svg>
48 47
49 <div id="result"> 48 <div id="result">
50 </div> 49 </div>
51 50
52 </body> 51 </body>
53 </html> 52 </html>
OLDNEW
« no previous file with comments | « LayoutTests/svg/zoom/xy-getcomputedstyle.html ('k') | LayoutTests/transitions/svg-layout-transition-zoom-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698