W3C home > Mailing lists > Public > public-css-commits@w3.org > January 2012

csswg/css3-flexbox Overview.html,1.130,1.131 Overview.src.html,1.128,1.129

From: Tab Atkins Jr.. via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 30 Jan 2012 22:44:53 +0000
To: public-css-commits@w3.org
Message-Id: <E1Rrzy1-0003EK-FW@lionel-hutz.w3.org>
Update of /sources/public/csswg/css3-flexbox
In directory hutz:/tmp/cvs-serv12400

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Replace some incorrect details about sizing a flexbox in the layout algorithm with placeholder issues.

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-flexbox/Overview.html,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- Overview.html	30 Jan 2012 21:56:58 -0000	1.130
+++ Overview.html	30 Jan 2012 22:44:51 -0000	1.131
@@ -1875,15 +1875,17 @@
      lines:</p>
 
     <ol>
-     <li>Determine the flexbox's available space by finding the size of the
-      flexbox's parent's content box in the flexbox's main axis, and
-      subtracting the size of the flexbox's margins, borders, and padding in
-      the main axis.
+     <li>Determine the main size of the flexbox's content box.
+      <p class=issue>Fill in the details about how to do so when the width is
+       min/max/fit-content. This is complicated for multiline, especially for
+       &lsquo;<code class=css>flex-flow:column</code>&rsquo;!
 
      <li>Collect as many consecutive flexbox items as possible, starting from
       the first item, while keeping the sum of their main size smaller than
-      the flexbox's available space. The items so collected form a single
-      flexbox line.
+      the flexbox's available space. If a flexbox item is sized with a
+      flexible length, then for the purpose of this step, clamp the item's
+      size between its minimum and maximum main sizes. The items so collected
+      form a single flexbox line.
 
      <li>Repeat the previous step, starting each time from the first flexbox
       item not yet collected into a flexbox line, until all flexbox items
@@ -1894,11 +1896,8 @@
     <p>Find the actual main size of the flexbox, per the standard rules for
      blocks (for block flexboxes) or inline-blocks (for inline flexboxes).</p>
 
-    <p>The min-content, max-content, or fit-content size of a flexbox in the
-     main axis can be determined by, for each flexbox line, summing the
-     min-content, max-content, or fit-content (as appropriate) sizes in the
-     main axis of the flexbox items, and then returning the maximum of these
-     sums.</p>
+    <p class=issue>Address min/max/fix-content here as well. Perhaps just
+     combine this step with the previous?</p>
 
    <li>For each flexbox line, <a
     href="#resolve-the-flexible-lengths"><i>resolve the flexible

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-flexbox/Overview.src.html,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- Overview.src.html	30 Jan 2012 21:56:58 -0000	1.128
+++ Overview.src.html	30 Jan 2012 22:44:51 -0000	1.129
@@ -912,9 +912,11 @@
 			<p>If the flexbox is multi-line, group the flexbox items into multiple lines:</p>
 
 			<ol>
-				<li>Determine the flexbox's available space by finding the size of the flexbox's parent's content box in the flexbox's main axis, and subtracting the size of the flexbox's margins, borders, and padding in the main axis.</li>
+				<li>Determine the main size of the flexbox's content box.
 
-				<li>Collect as many consecutive flexbox items as possible, starting from the first item, while keeping the sum of their main size smaller than the flexbox's available space.  The items so collected form a single flexbox line.</li>
+				<p class='issue'>Fill in the details about how to do so when the width is min/max/fit-content. This is complicated for multiline, especially for ''flex-flow:column''!</p></li>
+
+				<li>Collect as many consecutive flexbox items as possible, starting from the first item, while keeping the sum of their main size smaller than the flexbox's available space.  If a flexbox item is sized with a flexible length, then for the purpose of this step, clamp the item's size between its minimum and maximum main sizes.  The items so collected form a single flexbox line.</li>
 
 				<li>Repeat the previous step, starting each time from the first flexbox item not yet collected into a flexbox line, until all flexbox items have been collected into flexbox lines.</li>
 			</ol>
@@ -923,7 +925,7 @@
 		<li>
 			<p>Find the actual main size of the flexbox, per the standard rules for blocks (for block flexboxes) or inline-blocks (for inline flexboxes).</p>
 
-			<p>The min-content, max-content, or fit-content size of a flexbox in the main axis can be determined by, for each flexbox line, summing the min-content, max-content, or fit-content (as appropriate) sizes in the main axis of the flexbox items, and then returning the maximum of these sums.</p>
+			<p class='issue'>Address min/max/fix-content here as well.  Perhaps just combine this step with the previous?</p>
 		</li>
 
 		<li>For each flexbox line, <i>resolve the flexible lengths</i> of the items contained within it.  All flexbox items now have a final main size.  Update each item's hypothetical cross size based on this main size.</li>
Received on Monday, 30 January 2012 22:44:54 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 30 January 2012 22:44:57 GMT