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

Unified Diff: third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block.html

Issue 1604993003: Set intrinsic size for inline SVG earlier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoid isEmpty(). Set individual width/height values. Add test for this. 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/in-html/inside-inline-block-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/in-html/inside-inline-block.html
diff --git a/third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block.html b/third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block.html
new file mode 100644
index 0000000000000000000000000000000000000000..da3aa4e69ed5cbd0f03a5692ee2abd58699f7b1e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<title>SVG inside inline block</title>
+<style>
+ body { margin: 0 }
+ span { display: inline-block }
+ div {
+ width: 100px;
+ background: green;
+ position: absolute;
+ top: 0;
+ left: 0
+ }
+ .cover1 {
+ top: 0;
+ left: 0;
+ height: 150px
+ }
+ .cover2 {
+ top: 50px;
+ left: 100px;
+ height: 100px
+ }
+ svg {
+ width: 100%;
+ height: 100%
+ }
+</style>
+<span>
+ <svg width="100">
+ <rect width="100%" height="100%" fill="red"/>
+ </svg>
+</span><span>
+ <svg width="100" height="100" style="width: 100%; height: 100%;">
+ <rect width="100%" height="100%" fill="red"/>
+ </svg>
+</span>
+<div class="cover1"></div>
+<div class="cover2"></div>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/svg/in-html/inside-inline-block-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698