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

Unified Diff: LayoutTests/fast/inline-block/float-both-whitespace.html

Issue 343663004: Floats following inlines break to next line unncessarily (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 6 years, 6 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: LayoutTests/fast/inline-block/float-both-whitespace.html
diff --git a/LayoutTests/fast/inline-block/float-both-whitespace.html b/LayoutTests/fast/inline-block/float-both-whitespace.html
new file mode 100644
index 0000000000000000000000000000000000000000..202274f48e7f7a9dc71db0345167c5b6e00dfad4
--- /dev/null
+++ b/LayoutTests/fast/inline-block/float-both-whitespace.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<title>Test With Both Leading and Trailing Whitespace</title>
+<style>
+ div { height:30px; margin:0; padding:0; border:none; }
+ .container { width:400px; }
+ .floater { float:right; width:100px; background-color:green; }
+ .middle { display:inline-block; width:300px; background-color:green; }
+</style>
+</head>
+<body>
+<p>There should be a single green rectangle below.</p>
+<!-- Single Leading and Trailing Space -->
+<div class="container"><div class="middle"></div> <div class="floater"></div> </div>
+
+<!-- Single Leading and Multiple Trailing Spaces -->
+<div class="container"><div class="middle"></div> <div class="floater"></div> </div>
+
+<!-- Multiple Leading and Single Trailing Spaces -->
+<div class="container"><div class="middle"></div> <div class="floater"></div> </div>
+
+<!-- Multiple Leading and Trailing Spaces -->
+<div class="container"><div class="middle"></div> <div class="floater"></div> </div>
+
+<!-- Mixture of Leading and Trailing Whitespace -->
+<div class="container">
+ <div class="middle"></div>
+ <div class="floater"></div>
+</div>
+
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698