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

Unified Diff: LayoutTests/fast/css-intrinsic-dimensions/nowrap-min-content.html

Issue 17072005: Floated elements inside a white-space:nowrap container should still wrap. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: now sans binary files. Created 7 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/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>
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/fast/css-intrinsic-dimensions/nowrap-min-content-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698