- From: H?kon Wium Lie via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 21 Mar 2011 14:26:06 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-multicol In directory hutz:/tmp/cvs-serv7514 Modified Files: Overview.src.html Log Message: alternative expression of pseudo-algoritm in place, note under pseudo-algorithm revised Index: Overview.src.html =================================================================== RCS file: /sources/public/csswg/css3-multicol/Overview.src.html,v retrieving revision 1.135 retrieving revision 1.136 diff -u -d -r1.135 -r1.136 --- Overview.src.html 9 Mar 2011 01:41:38 -0000 1.135 +++ Overview.src.html 21 Mar 2011 14:26:04 -0000 1.136 @@ -772,6 +772,7 @@ <p>The <code>floor()</code> function rounds a number to the next smaller integer. +<!-- <pre> (01) if ((column-width = auto) and (column-count = auto)) or (02) ((available-width = unknown) and (column-count = auto)) then @@ -809,36 +810,37 @@ </pre> <p><span class=issue>Alternative encoding of pseudo-algorithm: +--> <pre> (01) if ((column-width = auto) and (column-count = auto)) then - exit; /* not a multicol element */ +(02) exit; /* not a multicol element */ -(02) if ((available-width = unknown) and (column-count = auto)) then -(03) exit; /* no columns */ +(03) if ((available-width = unknown) and (column-count = auto)) then +(04) exit; /* no columns */ -(06) if (available-width = unknown) and (column-count != auto) and (column-width != auto) then -(07) N := column-count; -(08) W := column-width; -(09) exit; +(05) if (available-width = unknown) and (column-count != auto) and (column-width != auto) then +(06) N := column-count; +(07) W := column-width; +(08) exit; -(12) if (available-width = unknown) then -(13) available-width := shrink-to-fit; +(09) if (available-width = unknown) then +(10) available-width := shrink-to-fit; -(16) if (column-width = auto) and (column-count != auto) then -(18) N := column-count; -(19) W := max(0, (available-width - ((N - 1) * column-gap)) / N); - exit; +(11) if (column-width = auto) and (column-count != auto) then +(12) N := column-count; +(13) W := max(0, (available-width - ((N - 1) * column-gap)) / N); +(14) exit; -(27) if (column-width != auto) and (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; +(15) if (column-width != auto) and (column-count = auto) then +(16) N := max(1, floor((available-width + column-gap) / (column-width + column-gap))); +(17) W := ((available-width + column-gap) / N) - column-gap; +(18) exit; - if (column-width != auto) and (column-count != auto) then -(39) N := min(column-count, floor((available-width + column-gap) / (column-width + column-gap))) -(40) W := ((available-width + column-gap) / N) - column-gap; - exit +(19) if (column-width != auto) and (column-count != auto) then +(20) N := min(column-count, floor((available-width + column-gap) / (column-width + column-gap))) +(21) W := ((available-width + column-gap) / N) - column-gap; +(22) exit </pre> @@ -847,10 +849,11 @@ <p class=note>Note that, in most cases, only one of 'column-width' and 'column-count' affect the layout. If 'column-width' has a value other -than ''auto'', 'column-count' will be ignored. The only case when both -'column-width' and 'column-count' can affect the layout is for element -where the width of the element has not been determined. This can, -e.g., be the case for table cells and floats. +than ''auto'', 'column-count' indicates the maximum number of columns. +However, both 'column-width' and 'column-count' are honored when the +width of the element has not been determined. This can, e.g., be the +case for table cells and floats. + <h3>Stacking context</h3>
Received on Monday, 21 March 2011 14:26:08 UTC