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

Unified Diff: third_party/WebKit/LayoutTests/animations/interpolation/order-interpolation.html

Issue 2692383004: Support animating CSS property "order" (Closed)
Patch Set: orderorder Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/animations/interpolation/order-interpolation.html
diff --git a/third_party/WebKit/LayoutTests/animations/interpolation/order-interpolation.html b/third_party/WebKit/LayoutTests/animations/interpolation/order-interpolation.html
new file mode 100644
index 0000000000000000000000000000000000000000..c226576cc5aa926b9c5ddc274a07295a52dfb1bb
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/interpolation/order-interpolation.html
@@ -0,0 +1,96 @@
+<!DOCTYPE html>
+<body>
+<style>
+.parent {
+ order: 30;
+}
+.target {
+ order: 10;
+}
+</style>
+<script src="resources/interpolation-test.js"></script>
+<script>
+assertInterpolation({
+ property: 'order',
+ from: neutralKeyframe,
+ to: '20',
+}, [
+ {at: -3, is: '-20'},
+ {at: -0.5, is: '5'},
+ {at: 0, is: '10'},
+ {at: 0.3, is: '13'},
+ {at: 0.6, is: '16'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '25'},
+]);
+
+assertInterpolation({
+ property: 'order',
+ from: 'initial',
+ to: '20',
+}, [
+ {at: -3, is: '-60'},
+ {at: -0.5, is: '-10'},
+ {at: 0, is: '0'},
+ {at: 0.3, is: '6'},
+ {at: 0.6, is: '12'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '30'},
+]);
+
+assertInterpolation({
+ property: 'order',
+ from: 'inherit',
+ to: '20',
+}, [
+ {at: -3, is: '60'},
+ {at: -0.5, is: '35'},
+ {at: 0, is: '30'},
+ {at: 0.3, is: '27'},
+ {at: 0.6, is: '24'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '15'},
+]);
+
+assertInterpolation({
+ property: 'order',
+ from: 'unset',
+ to: '20',
+}, [
+ {at: -3, is: '-60'},
+ {at: -0.5, is: '-10'},
+ {at: 0, is: '0'},
+ {at: 0.3, is: '6'},
+ {at: 0.6, is: '12'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '30'},
+]);
+
+assertInterpolation({
+ property: 'order',
+ from: '10',
+ to: '20'
+}, [
+ {at: -3.0, is: '-20'},
+ {at: -0.5, is: '5'},
+ {at: 0, is: '10'},
+ {at: 0.3, is: '13'},
+ {at: 0.6, is: '16'},
+ {at: 1, is: '20'},
+ {at: 1.5, is: '25'}
+]);
+
+assertInterpolation({
+ property: 'order',
+ from: '2',
+ to: '4'
+}, [
+ {at: -3.0, is: '-4'},
+ {at: -0.5, is: '1'},
+ {at: 0, is: '2'},
+ {at: 0.3, is: '3'},
+ {at: 0.6, is: '3'},
+ {at: 1, is: '4'},
+ {at: 1.5, is: '5'}
+]);
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSInterpolationTypesMap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698