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

Unified Diff: third_party/WebKit/LayoutTests/animations/custom-properties/unregistered-element-animate.html

Issue 2521103004: Revert of Apply custom property animation (Closed)
Patch Set: Created 4 years, 1 month 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/custom-properties/unregistered-element-animate.html
diff --git a/third_party/WebKit/LayoutTests/animations/custom-properties/unregistered-element-animate.html b/third_party/WebKit/LayoutTests/animations/custom-properties/unregistered-element-animate.html
deleted file mode 100644
index a75ccf8a74da953d99945cb7b72768c3d097acac..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/animations/custom-properties/unregistered-element-animate.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<script src="../../resources/testharness.js"></script>
-<script src="../../resources/testharnessreport.js"></script>
-<style>
-#target {
- background-color: var(--x);
-}
-</style>
-<div id="target"></div>
-<script>
-test(() => {
- var animation = target.animate({'--x': ['green', 'lime']}, 1000);
- animation.currentTime = 250;
- assert_equals(getComputedStyle(target).getPropertyValue('--x'), 'green');
- assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)');
- animation.currentTime = 750;
- assert_equals(getComputedStyle(target).getPropertyValue('--x'), 'lime');
- assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 255, 0)');
-}, 'element.animate() animations should apply custom properties');
-</script>

Powered by Google App Engine
This is Rietveld 408576698