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

Unified Diff: LayoutTests/animations/interpolation/svg-stroke-interpolation.html

Issue 767593002: Handle interpolation of SVG <paint> 'currentColor' w/ Web/CSS Animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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: LayoutTests/animations/interpolation/svg-stroke-interpolation.html
diff --git a/LayoutTests/animations/interpolation/svg-stroke-interpolation.html b/LayoutTests/animations/interpolation/svg-stroke-interpolation.html
index 94cc1627c82e4730b5415f16f78772c96c7d16c5..b2eff6d885cee781c7800dfc7f79d78b33db6ebd 100644
--- a/LayoutTests/animations/interpolation/svg-stroke-interpolation.html
+++ b/LayoutTests/animations/interpolation/svg-stroke-interpolation.html
@@ -6,6 +6,7 @@
height: 100px;
fill: black;
stroke-width: 20px;
+ color: blue;
}
.replica {
fill: green;
@@ -39,6 +40,26 @@ assertInterpolation({
assertInterpolation({
property: 'stroke',
from: 'orange',
+ to: 'currentColor'
+}, [
+ {at: 0, is: 'orange'},
+ {at: 0.2, is: '#cc8433'},
+ {at: 0.6, is: '#664299'},
+ {at: 1, is: 'blue'},
+]);
+assertInterpolation({
+ property: 'stroke',
+ from: 'currentColor',
+ to: 'orange'
+}, [
+ {at: 0, is: 'blue'},
+ {at: 0.2, is: '#3321cc'},
+ {at: 0.6, is: '#996366'},
+ {at: 1, is: 'orange'},
+]);
+assertInterpolation({
+ property: 'stroke',
+ from: 'orange',
to: 'url(#gradient)'
}, [
{at: 0.2, is: 'orange'},

Powered by Google App Engine
This is Rietveld 408576698