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

Unified Diff: third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css.html

Issue 1455153003: Fix animation of 'color' w/ currentColor for SVG 'fill' and 'stroke' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css.html
diff --git a/third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css.html b/third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css.html
new file mode 100644
index 0000000000000000000000000000000000000000..7d82c2c89f9c73f932d28500d745f953b082a169
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<script src="../../fast/repaint/resources/text-based-repaint.js"></script>
+<script src="../../resources/run-after-layout-and-paint.js"></script>
+<script>
+window.testIsAsync = true;
+window.onload = runRepaintTest;
+
+function repaintTest() {
+ var circle = document.getElementsByTagName("circle")[0];
+ ani = circle.animate([{ color: "blue" }, { color: "cyan"}], { duration: 2000, iterations: 1});
+ setTimeout(function() {
+ ani.currentTime = 1000;
+ ani.pause();
+ runAfterLayoutAndPaint(finishRepaintTest);
+ }, 0);
+}
+</script>
+<style>
+circle {
+ fill: currentColor;
+ color: blue;
+}
+</style>
+<body>
+<svg xmlns="http://www.w3.org/2000/svg" width=90 height=90>
+ <circle r="40" cx="40" cy="40" />
+</svg>
+</body>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/repaint/color-fill-currentColor-and-css-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698