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

Unified Diff: LayoutTests/transitions/object-position-transition.html

Issue 22839023: Add support for the object-position CSS property. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase master 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/transitions/object-position-transition.html
diff --git a/LayoutTests/transitions/object-position-transition.html b/LayoutTests/transitions/object-position-transition.html
new file mode 100644
index 0000000000000000000000000000000000000000..52ad86e6133c994f41567170d1b55547219ef030
--- /dev/null
+++ b/LayoutTests/transitions/object-position-transition.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+
+<html>
+ <head>
+ <title>Transitioning object-position</title>
+ <style>
+ #box {
+ width: 400px;
+ height: 400px;
+ object-position:-50px -50px;
+ transition-duration: 0.5s;
+ transition-timing-function: linear;
+ transition-property: object-position;
+ }
+ </style>
+ <script src="../animations/resources/animation-test-helpers.js"></script>
+ <script>
+ const expectedValues = [
+ // [time, element-id, property, expected-value, tolerance]
+ [0.25, 'box', 'object-position', "25px 75px", 10]
+ ];
+
+ function setupTest()
+ {
+ document.getElementById('box').style.objectPosition = "100px 200px";
+ }
+ runTransitionTest(expectedValues, setupTest);
+ </script>
+ </head>
+ <body>
+ <img id="box" src="../animations/resources/stripes-100.png">
+ <div id="result"></div>
+ </body>
+</html>
« 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