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

Side by Side Diff: LayoutTests/transitions/transition-currentcolor.html

Issue 552683002: Don't transition a property that is currentColor when color changes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@cc
Patch Set: tweak test Created 6 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
« no previous file with comments | « no previous file | Source/core/animation/css/CSSPropertyEquality.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 div {
6 border-left-color: currentColor;
7 border-top-color: initial;
8 transition: 100s;
9 }
10 </style>
11 <div id="target1"></div>
12 <div id="target2"></div>
13 <script>
14 var test1 = async_test("A property set to currentColor shouldn't transition when color changes");
15 var test2 = async_test("A property set should transition from currentColor to an explicit color");
16 requestAnimationFrame(function() {
17 target1.style.color = "orange";
18 target2.style.borderLeftColor = "orange";
19 requestAnimationFrame(function() {
20 // Only 'color' should transition
21 test1.step(function() { assert_equals(target1.getAnimationPlayers().length, 1); });
22 test2.step(function() { assert_equals(target2.getAnimationPlayers().length, 1); });
23 test1.done();
24 test2.done();
25 });
26 });
27 </script>
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/css/CSSPropertyEquality.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698