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

Unified Diff: third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height.html

Issue 1587023002: SVG with zero intrinsic size should be respected always (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added TODO Created 4 years, 11 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/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height.html
diff --git a/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height.html b/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height.html
new file mode 100644
index 0000000000000000000000000000000000000000..c50f6b282be7f5cec41bad86f9e45b75ea3f4345
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height.html
@@ -0,0 +1,36 @@
+<!DOCTYPE html>
+<html>
+<style>
+object {
+ background: red;
+}
+</style>
+<body style="margin: 0px; padding: 0px;">
+ <!--There should not be any red rectangle visible. -->
+ <object data="data:image/svg+xml,
+ <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='0' height='0'>
+ <rect width='50' height='50' fill='red'/>
+ </svg>
+ "></object>
+ <object data="data:image/svg+xml,
+ <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='50' height='0'>
+ <rect width='50' height='50' fill='red'/>
+ </svg>
+ "></object>
+ <object data="data:image/svg+xml,
+ <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='0' height='50'>
+ <rect width='50' height='50' fill='red'/>
+ </svg>
+ "></object>
+ <object data="data:image/svg+xml,
+ <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='0'>
+ <rect width='50' height='50' fill='red'/>
+ </svg>
+ "></object>
+ <object data="data:image/svg+xml,
+ <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' height='0'>
+ <rect width='50' height='50' fill='red'/>
+ </svg>
+ "></object>
+</body>
+</html>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/custom/object-sizing-zero-intrinsic-width-height-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698