csswg/css3-multicol Overview.src.html,1.130,1.131

Update of /sources/public/csswg/css3-multicol
In directory hutz:/tmp/cvs-serv20260

Modified Files:
	Overview.src.html 
Log Message:
added alternate pseudo-algorithm

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/css3-multicol/Overview.src.html,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -d -r1.130 -r1.131
--- Overview.src.html	8 Mar 2011 23:59:18 -0000	1.130
+++ Overview.src.html	9 Mar 2011 01:29:35 -0000	1.131
@@ -779,7 +779,7 @@
 (04)  fi
 (05)  
 (06)  if (available-width = unknown) and (column-count != auto) and (column-width != auto) then
-(07)    N := column-count;
+(07)    N := column-count;  
 (08)    W := column-width;
 (09)    exit;
 (10)  fi
@@ -808,6 +808,48 @@
 (41)  fi
 </pre>
 
+<p><span class=issue>Alternative pseudo-algorithm:
+
+<pre>
+
+(01)  if ((column-width = auto) and (column-count = auto)) or
+(02)     ((available-width = unknown) and (column-count = auto)) then
+(03)    exit; /* no columns */
+(04)  fi
+(05)  
+(06)  if (available-width = unknown) and (column-count != auto) and (column-width != auto) then
+(07)    N := column-count;  
+(08)    W := column-width;
+(09)    exit;
+(10)  fi
+
+(12)  if (available-width = unknown) then
+(13)    available-width := shrink-to-fit;
+(14)  fi
+
+/* the next block is used when column-count is set, and column-width is auto  */
+
+(16)  if (column-width = auto) then
+(18)    N := column-count;
+(19)    W := max(0, (available-width - ((N - 1) * column-gap))/N);
+        exit;
+      fi
+
+/* the next block is used when column-width is set, and column-count is auto */
+   
+(27)  if (column-count = auto) then
+(32)    N := min(1, floor((available-width + column-gap) / (column-width + column-gap)));
+(33)    W := ((available-width + column-gap) / N) - column-gap;
+        exit;
+      fi 
+
+/* the next block is used if both column-count and column-width are set */
+
+(39)  N := min(column-count, floor((available-width + column-gap) / (column-width + column-gap)))
+(40)  W := ((available-width + column-gap) / N) - column-gap;
+
+</pre>
+
 
 <p>In paged media, user agents may perform this calculation on a
 per-page basis.

Received on Wednesday, 9 March 2011 01:29:39 UTC