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

Unified Diff: LayoutTests/animations/interpolation/max-width-interpolation.html

Issue 23462018: CSS Animations: add interpolation test for max-width (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/max-width-interpolation-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/animations/interpolation/max-width-interpolation.html
diff --git a/LayoutTests/animations/interpolation/max-width-interpolation.html b/LayoutTests/animations/interpolation/max-width-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..1eca7e5c2871f41af317ef494c7112bd8a99bfd9
--- /dev/null
+++ b/LayoutTests/animations/interpolation/max-width-interpolation.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<meta charset="UTF-8">
+<style>
+.target {
+ width: 100px;
+ height: 100px;
+ background-color: black;
+ display: inline-block;
+}
+.replica {
+ background-color: green;
+}
+</style>
+<body>
+<script src="resources/interpolation-test.js"></script>
+<script>
+assertInterpolation({
+ property: 'max-width',
+ from: '0px',
+ to: '100px'
+}, [
+ {at: -0.5, is: '0'}, // CSS max-width can't be negative.
+ {at: 0, is: '0'},
+ {at: 0.3, is: '30px'},
+ {at: 0.6, is: '60px'},
+ {at: 1, is: '100px'},
+ {at: 1.5, is: '150px'}
+]);
+</script>
+</body>
« no previous file with comments | « no previous file | LayoutTests/animations/interpolation/max-width-interpolation-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698