Skip to content

Commit

Permalink
Merge pull request w3c#166 from frivoal/mutlicol-intrinsic-sizes
Browse files Browse the repository at this point in the history
Take column gaps into account for multicol intrinsic sizing
  • Loading branch information
tabatkins committed Jun 6, 2016
2 parents df0c196 + 5264c82 commit 99e2a0e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions css-sizing/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ Min-content Sizes in Multi-column Layout</h3>
with a computed 'column-width' of ''column-width/auto''
is the largest <a>min-content inline-size contribution</a> of its contents
multiplied by its 'column-count'
(treating ''column-count/auto'' as ''1'').
(treating ''column-count/auto'' as ''1''),
plus its 'column-gap' multiplied by 'column-count' minus 1.

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

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

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

0 comments on commit 99e2a0e

Please sign in to comment.