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

Unified Diff: third_party/WebKit/LayoutTests/animations/responsive/translate-responsive.html

Issue 1644883002: Add additive animation support for CSS property translate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_propertyInterpolationTypesMapping
Patch Set: Rebased Created 4 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
Index: third_party/WebKit/LayoutTests/animations/responsive/translate-responsive.html
diff --git a/third_party/WebKit/LayoutTests/animations/responsive/translate-responsive.html b/third_party/WebKit/LayoutTests/animations/responsive/translate-responsive.html
new file mode 100644
index 0000000000000000000000000000000000000000..5402c187bb45ddc78dcb6031598a24f55bb9263d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/responsive/translate-responsive.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<script src="resources/responsive-test.js"></script>
+<script>
+assertCSSResponsive({
+ property: 'translate',
+ from: 'inherit',
+ to: '100px 200px 300px',
+ configurations: [{
+ state: {inherited: 'initial'},
+ expect: [
+ {at: 0.25, is: '25px 50px 75px'},
+ {at: 0.75, is: '75px 150px 225px'},
+ ],
+ }, {
+ state: {inherited: '0'},
+ expect: [
+ {at: 0.25, is: '25px 50px 75px'},
+ {at: 0.75, is: '75px 150px 225px'},
+ ],
+ }, {
+ state: {inherited: '200px 100px'},
+ expect: [
+ {at: 0.25, is: '175px 125px 75px'},
+ {at: 0.75, is: '125px 175px 225px'},
+ ],
+ }, {
+ state: {inherited: '100px 100px 100px'},
+ expect: [
+ {at: 0.25, is: '100px 125px 150px'},
+ {at: 0.75, is: '100px 175px 250px'},
+ ],
+ }],
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698