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

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

Issue 1645913002: Add additive animation support for CSS property motion-rotation (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/motion-rotation-responsive.html
diff --git a/third_party/WebKit/LayoutTests/animations/responsive/motion-rotation-responsive.html b/third_party/WebKit/LayoutTests/animations/responsive/motion-rotation-responsive.html
new file mode 100644
index 0000000000000000000000000000000000000000..cd48b03f15344274d97b32e5d417153d148e1049
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/responsive/motion-rotation-responsive.html
@@ -0,0 +1,41 @@
+<!DOCTYPE html>
+<script src="resources/responsive-test.js"></script>
+<script>
+assertCSSResponsive({
+ property: 'motion-rotation',
+ from: 'inherit',
+ to: 'auto 40deg',
+ configurations: [{
+ state: {inherited: '50deg'},
+ expect: [
+ {at: 0.25, is: '50deg'},
+ {at: 0.75, is: 'auto 40deg'},
+ ],
+ }, {
+ state: {inherited: 'auto 20deg'},
+ expect: [
+ {at: 0.25, is: 'auto 25deg'},
+ {at: 0.75, is: 'auto 35deg'},
+ ],
+ }],
+});
+
+assertCSSResponsive({
+ property: 'motion-rotation',
+ from: neutralKeyframe,
+ to: '80deg',
+ configurations: [{
+ state: {underlying: 'auto 50deg'},
+ expect: [
+ {at: 0.25, is: 'auto 50deg'},
+ {at: 0.75, is: '80deg'},
+ ],
+ }, {
+ state: {underlying: '40deg'},
+ expect: [
+ {at: 0.25, is: '50deg'},
+ {at: 0.75, is: '70deg'},
+ ],
+ }],
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698