Skip to content

Commit 5237b12

Browse files
author
howcome
committed
machine-generated version
1 parent 97e0714 commit 5237b12

1 file changed

Lines changed: 91 additions & 109 deletions

File tree

css-multicol/Overview.html

Lines changed: 91 additions & 109 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@
1010
rel=dcterms.rights>
1111
<meta content="CSS Multi-column Layout Module" name=dcterms.title>
1212
<meta content=text name=dcterms.type>
13-
<meta content=2013-02-07 name=dcterms.issued>
13+
<meta content=2013-05-10 name=dcterms.date>
1414
<meta content="Håkon Wium Lie" name=dcterms.creator>
1515
<meta content=W3C name=dcterms.publisher>
16-
<meta content="http://www.w3.org/TR/2013/ED-css3-multicol-20130207/"
16+
<meta content="http://dev.w3.org/csswg/css3-multicol/"
1717
name=dcterms.identifier>
1818
<link href="../default.css" rel=stylesheet type="text/css">
1919
<link href="http://www.w3.org/StyleSheets/TR/W3C-ED.css" rel=stylesheet
@@ -38,13 +38,13 @@
3838

3939
<h1>CSS Multi-column Layout Module</h1>
4040

41-
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 7 February 2013</h2>
41+
<h2 class="no-num no-toc" id=w3c-working>Editor's Draft 10 May 2013</h2>
4242

4343
<dl>
4444
<dt>This version:
4545

4646
<dd>
47-
<!--<a href="http://www.w3.org/TR/2013/CR-css3-multicol-20130207">http://www.w3.org/TR/2013/ED-css3-multicol-20130207/</a>-->
47+
<!--<a href="http://www.w3.org/TR/2013/CR-css3-multicol-20130510">http://dev.w3.org/csswg/css3-multicol/</a>-->
4848
<a
4949
href="http://dev.w3.org/csswg/css3-multicol/">http://dev.w3.org/csswg/css3-multicol/</a>
5050

@@ -58,13 +58,14 @@ <h2 class="no-num no-toc" id=w3c-working>Editor's Draft 7 February 2013</h2>
5858
<dd><a
5959
href="http://www.w3.org/TR/2009/CR-css3-multicol-20091217/">http://www.w3.org/TR/2009/CR-css3-multicol-20091217/</a>
6060

61-
<dt>Feedback:</dt>
62-
<dd><a href="mailto:www-style@w3.org?subject=%5Bcss-multicol%5D%20feedback"
63-
>www-style@w3.org</a>
64-
with subject line &ldquo;<kbd>[css-multicol]
65-
<var>&hellip; message topic &hellip;</var></kbd>&rdquo;
66-
(<a rel="discussion" href="http://lists.w3.org/Archives/Public/www-style/"
67-
>archives</a>)
61+
<dt>Feedback:
62+
63+
<dd><a
64+
href="mailto:www-style@w3.org?subject=%5Bcss-multicol%5D%20feedback">www-style@w3.org</a>
65+
with subject line “<kbd>[css-multicol] <var>… message topic
66+
</var></kbd>” (<a
67+
href="http://lists.w3.org/Archives/Public/www-style/"
68+
rel=discussion>archives</a>)
6869

6970
<dt>Editors:
7071

@@ -117,20 +118,22 @@ <h2 class="no-num no-toc" id=status-of-this-document>Status of this
117118
“css3-multicol” in the subject, preferably like this:
118119
“[<!---->css3-multicol<!---->] <em>…summary of comment…</em>
119120

120-
<p>This document was produced by the <a href="/Style/CSS/members">CSS
121-
Working Group</a> (part of the <a href="/Style/">Style Activity</a>).
121+
<p>This document was produced by the <a
122+
href="http://www.w3.org/Style/CSS/members">CSS Working Group</a> (part of
123+
the <a href="http://www.w3.org/Style/">Style Activity</a>).
122124

123125
<p>This document was produced by a group operating under the <a
124-
href="/Consortium/Patent-Policy-20040205/">5 February 2004 W3C Patent
125-
Policy</a>. W3C maintains a <a href="/2004/01/pp-impl/32061/status"
126+
href="http://www.w3.org/Consortium/Patent-Policy-20040205/">5 February
127+
2004 W3C Patent Policy</a>. W3C maintains a <a
128+
href="http://www.w3.org/2004/01/pp-impl/32061/status"
126129
rel=disclosure>public list of any patent disclosures</a> made in
127130
connection with the deliverables of the group; that page also includes
128131
instructions for disclosing a patent. An individual who has actual
129132
knowledge of a patent which the individual believes contains <a
130-
href="/Consortium/Patent-Policy-20040205/#def-essential">Essential
133+
href="http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential">Essential
131134
Claim(s)</a> must disclose the information in accordance with <a
132-
href="/Consortium/Patent-Policy-20040205/#sec-Disclosure">section 6 of the
133-
W3C Patent Policy</a>.</p>
135+
href="http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure">section
136+
6 of the W3C Patent Policy</a>.</p>
134137
<!--end-status-->
135138

136139
<p>This document has been a Working Draft in the CSS Working Group for
@@ -949,25 +952,20 @@ <h3 id=pseudo-algorithm><span class=secno>3.4. </span>Pseudo-algorithm</h3>
949952
<p>The pseudo-algorithm below determines the used values for ‘<a
950953
href="#column-count"><code class=property>column-count</code></a>’ (N)
951954
and ‘<a href="#column-width"><code
952-
class=property>column-width</code></a>’ (W). There are two other
953-
variables in the pseudo-algorithm:
954-
955-
<ul>
956-
<li><code>available-width</code>: if the used width of the multi-column
957-
element has not been determined when the ‘<a href="#column-count"><code
958-
class=property>column-count</code></a>’ and ‘<a
959-
href="#column-width"><code class=property>column-width</code></a>’ must
960-
be determined (e.g., if it is floating with a ‘<code
961-
class=property>width</code>’ of ‘<code class=property>auto</code>
962-
as per CSS 2.1 section 10.3.5) this variable is <code>unknown</code>,
963-
otherwise it is the same as the used width of the multi-column element.
964-
In vertical text, the used height replaces used width in this
965-
calculation.
966-
967-
<li><code>shrink-to-fit</code>: this variable represents the result of a
968-
<em>shrink-to-fit</em> computation. CSS does not define the exact
969-
algorithm.
970-
</ul>
955+
class=property>column-width</code></a>’ (W). There is one other variable
956+
in the pseudo-algorithm: U is the used width of the multi-column element.
957+
958+
<p class=note>The used width U of the multi-column element can depend on
959+
the element's contents, in which case it also depends on the computed
960+
values of the ‘<a href="#column-count"><code
961+
class=property>column-count</code></a>’ and ‘<a
962+
href="#column-width"><code class=property>column-width</code></a>
963+
properties. This specification does not define how U is calculated.
964+
Another module (probably the Basic Box Model <a href="#CSS3BOX"
965+
rel=biblioentry>[CSS3BOX]<!--{{CSS3BOX}}--></a> or the Intrinsic &
966+
Extrinsic Sizing Module <a href="#CSS3-SIZING"
967+
rel=biblioentry>[CSS3-SIZING]<!--{{CSS3-SIZING}}--></a>) is expected to
968+
define this.
971969

972970
<p>Two assumptions are being made by the pseudo-algorithm:
973971

@@ -977,51 +975,13 @@ <h3 id=pseudo-algorithm><span class=secno>3.4. </span>Pseudo-algorithm</h3>
977975
<li>that no column breaks are added through style sheets
978976
</ul>
979977

980-
<p>The <code>floor()</code> function rounds a number to the next smaller
981-
integer. <!--
982-
<pre>
983-
(01) if ((column-width = auto) and (column-count = auto)) or
984-
(02) ((available-width = unknown) and (column-count = auto)) then
985-
(03) exit; /* no columns */
986-
(04) fi
987-
(05)
988-
(06) if (available-width = unknown) and (column-count != auto) and (column-width != auto) then
989-
(07) N := column-count;
990-
(08) W := column-width;
991-
(09) exit;
992-
(10) fi
993-
(11)
994-
(12) if (available-width = unknown) then
995-
(13) available-width := shrink-to-fit;
996-
(14) fi
997-
(15)
998-
(16) if (column-width = auto) then
999-
(18) N := column-count;
1000-
(19) W := max(0, (available-width - ((N - 1) * column-gap))/N);
1001-
(27) elsif (column-count = auto) then
1002-
(28) if (column-width >= available-width) then
1003-
(29) N := 1
1004-
(30) W := available-width;
1005-
(31) else
1006-
(32) N := floor((available-width + column-gap) / (column-width + column-gap));
1007-
(33) W := ((available-width + column-gap) / N) - column-gap;
1008-
(34) fi
1009-
(35) elsif (column-width >= available-width) then
1010-
(36) N := 1
1011-
(37) W := available-width;
1012-
(38) else
1013-
(39) N := min(column-count, floor((available-width + column-gap) / (column-width + column-gap)))
1014-
(40) W := ((available-width + column-gap) / N) - column-gap;
1015-
(41) fi
1016-
</pre>
1017-
1018-
<p><span class=issue>Alternative encoding of pseudo-algorithm:
1019-
-->
978+
<p>The <code>floor(X)</code> function returns the largest integer Y ≤ X.
1020979

1021980
<pre>
1022981
(01) if ((column-width = auto) and (column-count = auto)) then
1023982
(02) exit; /* not a multicol element */
1024983

984+
<!--
1025985
(03) if ((available-width = unknown) and (column-count = auto)) then
1026986
(04) exit; /* no columns */
1027987
@@ -1032,22 +992,23 @@ <h3 id=pseudo-algorithm><span class=secno>3.4. </span>Pseudo-algorithm</h3>
1032992
1033993
(09) if (available-width = unknown) then
1034994
(10) available-width := shrink-to-fit;
995+
-->
1035996

1036-
(11) if (column-width = auto) and (column-count != auto) then
1037-
(12) N := column-count;
1038-
(13) W := max(0, (available-width - ((N - 1) * column-gap)) / N);
1039-
(14) exit;
1040-
1041-
(15) if (column-width != auto) and (column-count = auto) then
1042-
(16) N := max(1, floor((available-width + column-gap) / (column-width + column-gap)));
1043-
(17) W := ((available-width + column-gap) / N) - column-gap;
1044-
(18) exit;
1045-
1046-
(19) if (column-width != auto) and (column-count != auto) then
1047-
(20) N := min(column-count, floor((available-width + column-gap) / (column-width + column-gap)))
1048-
(21) N := max(1, N);
1049-
(22) W := ((available-width + column-gap) / N) - column-gap;
1050-
(23) exit
997+
(03) if (column-width = auto) and (column-count != auto) then
998+
(04) N := column-count;
999+
(05) W := max(0, (U - ((N - 1) * column-gap)) / N);
1000+
(06) exit;
1001+
1002+
(07) if (column-width != auto) and (column-count = auto) then
1003+
(08) N := max(1, floor((U + column-gap) / (column-width + column-gap)));
1004+
(09) W := ((U + column-gap) / N) - column-gap;
1005+
(10) exit;
1006+
1007+
(11) if (column-width != auto) and (column-count != auto) then
1008+
(12) N := min(column-count, floor((U + column-gap) / (column-width + column-gap)))
1009+
(13) N := max(1, N);
1010+
(14) W := ((U + column-gap) / N) - column-gap;
1011+
(15) exit
10511012
</pre>
10521013

10531014
<p>In paged media, user agents may perform this calculation on a per-page
@@ -1063,7 +1024,7 @@ <h3 id=pseudo-algorithm><span class=secno>3.4. </span>Pseudo-algorithm</h3>
10631024
columns. However, both ‘<a href="#column-width"><code
10641025
class=property>column-width</code></a>’ and ‘<a
10651026
href="#column-count"><code class=property>column-count</code></a>’ are
1066-
honored when the width of the element has not been determined. This can,
1027+
honored when the width of the element depends on its contents. This can,
10671028
e.g., be the case for table cells and floats.
10681029

10691030
<h3 id=stacking-context><span class=secno>3.5. </span>Stacking context</h3>
@@ -1087,8 +1048,9 @@ <h2 id=column-gaps-and-rules><span class=secno>4. </span>Column gaps and
10871048
will not alter the placement of anything else. If a column rule is wider
10881049
than its gap, the adjacent column boxes will overlap the rule, and the
10891050
rule may possibly extend outside the box of the multicol element. Column
1090-
rules are painted just above the background of the multicol element.
1091-
Column rules are only drawn between two columns that both have content.
1051+
rules are painted in the inline content layer, but below all inline
1052+
content inside the multicol element. Column rules are only drawn between
1053+
two columns that both have content.
10921054

10931055
<h3 id=column-gap><span class=secno>4.1. </span><a
10941056
href="#column-gap0"><code class=property>column-gap</code></a></h3>
@@ -2005,14 +1967,14 @@ <h3 id=column-span><span class=secno>6.1. </span>‘<a
20051967
<h2 id=filling-columns><span class=secno>7. </span>Filling columns</h2>
20061968

20071969
<p>There are two strategies for filling columns: columns can either be
2008-
balanced, or not. If columns are balanced, user agents should try to fill
2009-
all columns in a row so that the columns appear to have the same amount of
2010-
content, while also trying to minimize the overflow content. If columns
2011-
are not balanced, they are filled sequentially; some columns may end up
2012-
partially filled, or with no content at all. In any case, user agents must
2013-
honor forced page breaks and should try to honor ‘<code
2014-
class=property>widows</code>, ‘<code class=property>orphans</code>
2015-
and other properties that may affect column lengths.
1970+
balanced, or not. If columns are balanced, user agents should try to
1971+
minimize the variation in content between columns, while also trying to
1972+
minimize the overflow content. If columns are not balanced, they are
1973+
filled sequentially; some columns may end up partially filled, or with no
1974+
content at all. In any case, user agents must honor forced page breaks and
1975+
should try to honor<code class=property>widows</code>’,<code
1976+
class=property>orphans</code> and other properties that may affect
1977+
column lengths.
20161978

20171979
<h3 id=cf><span class=secno>7.1. </span><a href="#column-fill"><code
20181980
class=property>column-fill</code></a></h3>
@@ -2093,7 +2055,7 @@ <h2 id=overflow><span class=secno>8. </span>Overflow</h2>
20932055
<h3 id=overflow-inside-multicol-elements><span class=secno>8.1.
20942056
</span>Overflow inside multicol elements</h3>
20952057

2096-
<p>Content in the normal flow that extends into column gaps (e.g., long
2058+
<p>Floated or in-flow content that extends into column gaps (e.g., long
20972059
words or images) is clipped in the middle of the column gap.
20982060

20992061
<div class=example>
@@ -2459,7 +2421,7 @@ <h3 id=cr-exit-criteria><span class=secno>9.1. </span>CR exit criteria</h3>
24592421
<h2 class=no-num id=acknowledgments>Acknowledgments</h2>
24602422

24612423
<p>This document is based on several older proposals and comments on older
2462-
proposals. Contributors include Øyvind Stenhaug, Sylvain Galineau,
2424+
proposals. Contributors include Øyvind Stenhaug, Sylvain Galineau,
24632425
Giovanni Campagna, David Hyatt, David Singer, David Woolley, Elika Etemad,
24642426
Björn Höhrmann, Joost de Valk, Peter-Paul Koch, Shelby Moore, Till
24652427
Halbach, Cédric Savarese, Andy Clarke, Robert O'Callahan, Markus Mielke,
@@ -2475,16 +2437,16 @@ <h3 class=no-num id=normative-references>Normative references</h3>
24752437
<!-- Sorted by label -->
24762438

24772439
<dl class=bibliography>
2478-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
2440+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
24792441
<!---->
24802442

24812443
<dt id=CSS21>[CSS21]
24822444

24832445
<dd>Bert Bos; et al. <a
2484-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/"><cite>Cascading Style
2446+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607"><cite>Cascading Style
24852447
Sheets Level 2 Revision 1 (CSS 2.1) Specification.</cite></a> 7 June
24862448
2011. W3C Recommendation. URL: <a
2487-
href="http://www.w3.org/TR/2011/REC-CSS2-20110607/">http://www.w3.org/TR/2011/REC-CSS2-20110607/</a>
2449+
href="http://www.w3.org/TR/2011/REC-CSS2-20110607">http://www.w3.org/TR/2011/REC-CSS2-20110607</a>
24882450
</dd>
24892451
<!---->
24902452

@@ -2504,8 +2466,28 @@ <h3 class=no-num id=other-references>Other references</h3>
25042466
<!-- Sorted by label -->
25052467

25062468
<dl class=bibliography>
2507-
<dt style="display: none"><!-- keeps the doc valid if the DL is empty -->
2469+
<dd style="display: none"><!-- keeps the doc valid if the DL is empty -->
25082470
<!---->
2471+
2472+
<dt id=CSS3-SIZING>[CSS3-SIZING]
2473+
2474+
<dd>Tab Atkins Jr.; Elika J. Etemad. <a
2475+
href="http://www.w3.org/TR/2012/WD-css3-sizing-20120927/"><cite>CSS
2476+
Intrinsic &amp; Extrinsic Sizing Module Level 3.</cite></a> 27 September
2477+
2012. W3C Working Draft. (Work in progress.) URL: <a
2478+
href="http://www.w3.org/TR/2012/WD-css3-sizing-20120927/">http://www.w3.org/TR/2012/WD-css3-sizing-20120927/</a>
2479+
</dd>
2480+
<!---->
2481+
2482+
<dt id=CSS3BOX>[CSS3BOX]
2483+
2484+
<dd>Bert Bos. <a
2485+
href="http://www.w3.org/TR/2007/WD-css3-box-20070809"><cite>CSS basic box
2486+
model.</cite></a> 9 August 2007. W3C Working Draft. (Work in progress.)
2487+
URL: <a
2488+
href="http://www.w3.org/TR/2007/WD-css3-box-20070809">http://www.w3.org/TR/2007/WD-css3-box-20070809</a>
2489+
</dd>
2490+
<!---->
25092491
</dl>
25102492
<!--end-informative-->
25112493

0 commit comments

Comments
 (0)