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

Side by Side Diff: LayoutTests/animations/use-count-stacked-neutral-keyframe.html

Issue 1248483005: Add use counter for stacked neutral keyframe in CSS Animations (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | Source/core/animation/css/CSSAnimations.cpp » ('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 <style>
5 #target {
6 animation-name: a, b;
7 animation-duration: 1e10s;
8 }
9
10 @keyframes a {
11 from { left: 1px; }
12 to { left: 1px; }
13 }
14
15 @keyframes b {
16 from { left: 1px; }
17 to { left: 1px; }
18 }
19 </style>
20 <div id="target"></div>
21 <script>
22 var CSSAnimationsStackedNeutralKeyframe = 937; // From UseCounter.h
23 test(function() {
24 getComputedStyle(target).left; // Force style recalc;
25 assert_false(internals.isUseCounted(document, CSSAnimationsStackedNeutralKeyfr ame));
26
27 document.styleSheets[0].rules[2].deleteRule('from');
28 getComputedStyle(target).left; // Force style recalc;
29 assert_true(internals.isUseCounted(document, CSSAnimationsStackedNeutralKeyfra me));
30 });
31 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698