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

Side by Side Diff: LayoutTests/transitions/object-position-transition.html

Issue 24077007: Add support for the object-position CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master again Created 7 years, 3 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <title>Transitioning object-position</title>
6 <style>
7 #box {
8 width: 400px;
9 height: 400px;
10 object-position:-50px -50px;
11 transition-duration: 0.5s;
12 transition-timing-function: linear;
13 transition-property: object-position;
14 }
15 </style>
16 <script src="../animations/resources/animation-test-helpers.js"></script >
17 <script>
18 const expectedValues = [
19 // [time, element-id, property, expected-value, tolerance]
20 [0.25, 'box', 'object-position', "25px 75px", 10]
21 ];
22
23 function setupTest()
24 {
25 document.getElementById('box').style.objectPosition = "100px 200 px";
26 }
27 runTransitionTest(expectedValues, setupTest);
28 </script>
29 </head>
30 <body>
31 <img id="box" src="../animations/resources/stripes-100.png">
32 <div id="result"></div>
33 </body>
34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/css/resources/circle-small.svg ('k') | LayoutTests/transitions/object-position-transition-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698