Index: LayoutTests/fast/css-intrinsic-dimensions/nowrap-min-content.html |
diff --git a/LayoutTests/fast/css-intrinsic-dimensions/nowrap-min-content.html b/LayoutTests/fast/css-intrinsic-dimensions/nowrap-min-content.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..b4d6f8861e9c6aaaad2929c205b7abe90ef01af9 |
--- /dev/null |
+++ b/LayoutTests/fast/css-intrinsic-dimensions/nowrap-min-content.html |
@@ -0,0 +1,38 @@ |
+<!DOCTYPE html> |
+<style> |
+.container { |
+ width: 100px; |
+ border: 5px solid salmon; |
+ overflow: hidden; |
+ margin: 5px; |
+ padding: 0; |
+} |
+.nowrap { |
+ white-space: nowrap; |
+} |
+.min-width { |
+ min-width: -webkit-min-content; |
+ min-width: -moz-min-content; |
+ min-width: -ie-min-content; |
+ min-width: min-content; |
+} |
+.child { |
+ float: left; |
+ width: 100px; |
+ height: 20px; |
+ background-color: pink; |
+ margin: 5px; |
+} |
+</style> |
+ |
+Tests that floated children of a white-space:nowrap element still wrap. |
+ |
+<div class="container min-width nowrap"> |
+ <input class="child"> |
+ <input class="child"> |
+</div> |
+ |
+<div class="container nowrap"> |
+ <input class="child"> |
+ <input class="child"> |
+</div> |