- From: H?kon Wium Lie via cvs-syncmail <cvsmail@w3.org>
- Date: Wed, 09 Mar 2011 01:29:50 +0000
- To: public-css-commits@w3.org
Update of /sources/public/csswg/css3-multicol
In directory hutz:/tmp/cvs-serv20295
Modified Files:
Overview.html
Log Message:
x
Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/css3-multicol/Overview.html,v
retrieving revision 1.128
retrieving revision 1.129
diff -u -d -r1.128 -r1.129
--- Overview.html 8 Mar 2011 23:59:23 -0000 1.128
+++ Overview.html 9 Mar 2011 01:29:47 -0000 1.129
@@ -29,13 +29,13 @@
<h1>CSS Multi-column Layout Module</h1>
- <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 8 March 2011</h2>
+ <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 9 March 2011</h2>
<dl>
<dt>This version:
<dd>
- <!--<a href="http://www.w3.org/TR/2011/CR-css3-multicol-20110308">http://www.w3.org/TR/2011/ED-css3-multicol-20110308</a>-->
+ <!--<a href="http://www.w3.org/TR/2011/CR-css3-multicol-20110309">http://www.w3.org/TR/2011/ED-css3-multicol-20110309</a>-->
<a
href="http://dev.w3.org/csswg/css3-multicol/">http://dev.w3.org/csswg/css3-multicol/</a>
@@ -960,7 +960,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
@@ -989,6 +989,48 @@
(41) fi
</pre>
+ <p><span class=issue>Alternative pseudo-algorithm: </span>
+
+ <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:52 UTC