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

Unified Diff: LayoutTests/animations/timing-functions-neutral-keyframe.html

Issue 851693007: Prepare for responsive CSS animations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 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: LayoutTests/animations/timing-functions-neutral-keyframe.html
diff --git a/LayoutTests/animations/timing-functions-neutral-keyframe.html b/LayoutTests/animations/timing-functions-neutral-keyframe.html
new file mode 100644
index 0000000000000000000000000000000000000000..a071e47f83d2d45828c31a972aedf7dcd6b949ac
--- /dev/null
+++ b/LayoutTests/animations/timing-functions-neutral-keyframe.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+<style>
+ @keyframes anim {
+ from { animation-timing-function: linear; }
+ to { left: 500px; }
+ }
+
+ #target {
+ animation: anim 10s -1s paused ease-in-out;
+ left: 0px;
+ position: absolute;
+ }
+</style>
+<div id="target"></div>
+<script>
+ test(function() {
+ assert_equals(parseInt(getComputedStyle(target).left), 50, 'left offset'); // Should be linearly interpolated
+ }, "Check that explicitly specified timing functions in neutral keyframes override default");
+</script>
« no previous file with comments | « no previous file | Source/core/animation/ActiveAnimations.h » ('j') | Source/core/animation/KeyframeEffectModel.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698