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

Unified Diff: third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size.html

Issue 1756763004: Merge image sizing algorithms (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix unused variable 'styleImage' in release Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size.html
diff --git a/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size.html b/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size.html
new file mode 100644
index 0000000000000000000000000000000000000000..c1ea96974d9838fa1830090fca94b419c0d19986
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<title>Test SVG in -webkit-cross-fade image</title>
+<style>
+div {
+ display: inline-block;
+ width: 100px;
+ height: 100px;
+}
+#tst1 {
+ background-image: -webkit-cross-fade(
+ url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"),
+ url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'><circle cx='5' cy='5' r='2.5' fill='red'/></svg>"),
+ 0);
+}
+#tst2 {
+ background-image: -webkit-cross-fade(
+ url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'><circle cx='5' cy='5' r='2.5' fill='red'/></svg>"),
+ url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"),
+ 1.0);
+}
+#tst3 {
+ background-image: -webkit-cross-fade(
+ url("resources/green-10.png"),
+ url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"),
+ 1.0);
+}
+#tst4 {
+ background-image: -webkit-cross-fade(
+ url("data:image/svg+xml,<svg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'><circle cx='5' cy='5' r='2.5' fill='green'/></svg>"),
+ url("resources/green-10.png"),
+ 0.0);
+}
+</style>
+<p>There should be four green circles below.
+<div id=tst1></div>
+<div id=tst2></div>
+<div id=tst3></div>
+<div id=tst4></div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/css3/images/cross-fade-svg-size-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698