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

Unified Diff: third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-svg-expected.html

Issue 2723093004: Adds SVGImageElement as a CanvasImageSource (Closed)
Patch Set: Refactored, added tests Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-svg-expected.html
diff --git a/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-svg-expected.html b/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-svg-expected.html
new file mode 100644
index 0000000000000000000000000000000000000000..782779d8b430faae9ea6ab9dd636cc4a51b44da7
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/canvas/canvas-drawImage-svg-expected.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<style>
+svg {
+ border: 1px solid black;
+}
+#img4 {
+ display: none;
+}
+</style>
+<svg id="s1" width="20px" height="20px">
+ <image id="img1" href="resources/pattern.png" x="0" y="0" width="20px" height="20px" />
+</svg>
+<svg id="s2" width="20px" height="20px">
+ <image id="img1" href="resources/pattern.png" x="10" y="10" width="20px" height="20px" />
+</svg>
+<svg id="s3" width="20px" height="20px">
+ <image id="img3" href="resources/pattern.png" x="0" y="0" width="20px" height="20px" />
+</svg>
+<svg id="s4" width="20px" height="20px">
+ <image id="img4" href="invalid" x="0" y="0" width="20px" height="20px" />
+</svg>
+<svg id="s5" width="20px" height="20px">
+</svg>
+<svg id="s6" width="20px" height="20px">
+ <circle cx="50%" cy="50%" r="50%" style="fill:blue;" />
Justin Novosad 2017/03/13 14:22:26 This one shows a minor discrepancy in the pixel re
fserb 2017/03/21 19:15:22 I didn't see that. But yeah, referencing circle.sv
+</svg>
+<svg id="s7" width="20px" height="20px">
+</svg>
+<svg id="s8" width="20px" height="20px">
+</svg>

Powered by Google App Engine
This is Rietveld 408576698