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

Unified Diff: LayoutTests/web-animations-api/quirky-keyframes.html

Issue 1305893005: Web Animations API: Don't allow quirky CSS values in keyframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 4 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
« no previous file with comments | « no previous file | Source/core/animation/StringKeyframe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/web-animations-api/quirky-keyframes.html
diff --git a/LayoutTests/web-animations-api/quirky-keyframes.html b/LayoutTests/web-animations-api/quirky-keyframes.html
new file mode 100644
index 0000000000000000000000000000000000000000..d0bcf227c53b7b3a9633bd136725be8490020e80
--- /dev/null
+++ b/LayoutTests/web-animations-api/quirky-keyframes.html
@@ -0,0 +1,30 @@
+<!DOCTYPE html>
+<script src="../resources/testharness.js"></script>
+<script src="../resources/testharnessreport.js"></script>
+
+<style>
+body {
+ color: blue;
+}
+
+#target {
+ color: green;
+}
+</style>
+
+<body>
+ <div id="target"></div>
+</body>
+
+<script>
+test(function() {
+ var animation = target.animate([{
+ color: '-webkit-text',
+ }, {
+ color: '-webkit-text',
+ }], 1);
+ animation.pause();
+ animation.currentTime = 0;
+ assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
+}, 'KeyframeEffects do not support quirky values.');
+</script>
« no previous file with comments | « no previous file | Source/core/animation/StringKeyframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698