Index: LayoutTests/fast/inline-block/float-leading-whitespace.html |
diff --git a/LayoutTests/fast/inline-block/float-leading-whitespace.html b/LayoutTests/fast/inline-block/float-leading-whitespace.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3b33e23a4e4e882aa8a52ee84a9923d70b75b914 |
--- /dev/null |
+++ b/LayoutTests/fast/inline-block/float-leading-whitespace.html |
@@ -0,0 +1,26 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<title>Test With Leading 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 Space --> |
+<div class="container"><div class="middle"></div> <div class="floater"></div></div> |
+ |
+<!-- Single Leading Newline --> |
+<div class="container"><div class="middle"></div> |
+<div class="floater"></div></div> |
+ |
+<!-- Mixture of Leading Whitespace --> |
+<div class="container"><div class="middle"></div> |
+ <div class="floater"></div></div> |
+ |
+</body> |
+</html> |