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

Side by Side 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, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/StringKeyframe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4
5 <style>
6 body {
7 color: blue;
8 }
9
10 #target {
11 color: green;
12 }
13 </style>
14
15 <body>
16 <div id="target"></div>
17 </body>
18
19 <script>
20 test(function() {
21 var animation = target.animate([{
22 color: '-webkit-text',
23 }, {
24 color: '-webkit-text',
25 }], 1);
26 animation.pause();
27 animation.currentTime = 0;
28 assert_equals(getComputedStyle(target).color, 'rgb(0, 128, 0)');
29 }, 'KeyframeEffects do not support quirky values.');
30 </script>
OLDNEW
« 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