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

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

Issue 1548873002: Port CSS visibility animations to CSSInterpolationTypes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added deferred interpolation comment Created 4 years, 11 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/stacked-visibility-animations-responsive.html
diff --git a/third_party/WebKit/LayoutTests/animations/stacked-visibility-animations-responsive.html b/third_party/WebKit/LayoutTests/animations/stacked-visibility-animations-responsive.html
new file mode 100644
index 0000000000000000000000000000000000000000..6489018db83cff15ec4cceffb26156da20420115
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/animations/stacked-visibility-animations-responsive.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<div id="target"></div>
+<script>
+test(() => {
+ var firstAnimation = target.animate([{visibility: 'hidden'}, {visibility: 'visible'}], 1);
+ var secondAnimation = target.animate({visibility: 'collapse'}, 1);
+ firstAnimation.pause();
+ firstAnimation.currentTime = 0;
+ secondAnimation.pause();
+ secondAnimation.currentTime = 0.75;
+ assert_equals(getComputedStyle(target).visibility, 'collapse');
+ firstAnimation.currentTime = 0.1;
+ assert_equals(getComputedStyle(target).visibility, 'visible');
+}, "Visibility animations with neutral keyframes should be responsive to animations they're stacked on top of.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698