4 <title>Test With Both Leading and Trailing Whitespace
</title>
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; }
13 <p>There should be a single green rectangle below.
</p>
14 <!-- Single Leading and Trailing Space -->
15 <div class=
"container"><div class=
"middle"></div> <div class=
"floater"></div> </div>
17 <!-- Single Leading and Multiple Trailing Spaces -->
18 <div class=
"container"><div class=
"middle"></div> <div class=
"floater"></div> </div>
20 <!-- Multiple Leading and Single Trailing Spaces -->
21 <div class=
"container"><div class=
"middle"></div> <div class=
"floater"></div> </div>
23 <!-- Multiple Leading and Trailing Spaces -->
24 <div class=
"container"><div class=
"middle"></div> <div class=
"floater"></div> </div>
26 <!-- Mixture of Leading and Trailing Whitespace -->
27 <div class=
"container">
28 <div class=
"middle"></div>
29 <div class=
"floater"></div>