Skip to content

Commit 99e2a0e

Browse files
committed
Merge pull request #166 from frivoal/mutlicol-intrinsic-sizes
Take column gaps into account for multicol intrinsic sizing
2 parents df0c196 + 5264c82 commit 99e2a0e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

css-sizing/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,8 @@ Min-content Sizes in Multi-column Layout</h3>
481481
with a computed 'column-width' of ''column-width/auto''
482482
is the largest <a>min-content inline-size contribution</a> of its contents
483483
multiplied by its 'column-count'
484-
(treating ''column-count/auto'' as ''1'').
484+
(treating ''column-count/auto'' as ''1''),
485+
plus its 'column-gap' multiplied by 'column-count' minus 1.
485486

486487
<h4 id="multicol-max-content">
487488
Max-content Sizes in Unconstrained-height Multi-column Layout</h3>
@@ -493,7 +494,8 @@ Max-content Sizes in Unconstrained-height Multi-column Layout</h3>
493494
is its 'column-count'
494495
multiplied by the larger of
495496
its 'column-width' (treating ''column-width/auto'' as zero)
496-
and the largest <a>min-content inline-size contribution</a> of its contents.
497+
and the largest <a>min-content inline-size contribution</a> of its contents,
498+
plus its 'column-gap' multiplied by 'column-count' minus 1.
497499

498500
<p class="note">
499501
Note that the contents of the multi-column element
@@ -506,7 +508,8 @@ Max-content Sizes in Unconstrained-height Multi-column Layout</h3>
506508
with unrestrained column heights
507509
and a computed 'column-count' of ''column-count/auto''
508510
is its 'column-width'
509-
multiplied by the number of columns obtained by taking all allowed column breaks [[CSS3-BREAK]].
511+
multiplied by the number of columns obtained by taking all allowed column breaks [[CSS3-BREAK]],
512+
plus its 'column-gap' multiplied by that same number of columns minus 1.
510513

511514
<!--
512515
The above was decided based on dholbert's example in http://lists.w3.org/Archives/Public/www-style/2012Oct/0017.html .

0 commit comments

Comments
 (0)