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

Side by Side Diff: LayoutTests/fast/inline-block/float-leading-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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>Test With Leading Whitespace</title>
5 <style>
6 div { height:30px; margin:0; padding:0; border:none; }
7 .container { width:400px; }
8 .floater { float:right; width:100px; background-color:green; }
9 .middle { display:inline-block; width:300px; background-color:green; }
10 </style>
11 </head>
12 <body>
13 <p> There should be a single green rectangle below. </p>
14 <!-- Single Leading Space -->
15 <div class="container"><div class="middle"></div> <div class="floater"></div></d iv>
16
17 <!-- Single Leading Newline -->
18 <div class="container"><div class="middle"></div>
19 <div class="floater"></div></div>
20
21 <!-- Mixture of Leading Whitespace -->
22 <div class="container"><div class="middle"></div>
23 <div class="floater"></div></div>
24
25 </body>
26 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698