From 5264c827346d668d08ce801680f24a8cf29b810d Mon Sep 17 00:00:00 2001 From: Florian Rivoal Date: Sat, 4 Jun 2016 11:37:00 +0900 Subject: [PATCH] Take column gaps into account for multicol intrinsic sizing This addresses the multicol part of w3c/csswg-drafts#163. --- css-sizing/Overview.bs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/css-sizing/Overview.bs b/css-sizing/Overview.bs index 0a1e3ea08ac..45f713e5bf7 100644 --- a/css-sizing/Overview.bs +++ b/css-sizing/Overview.bs @@ -481,7 +481,8 @@ Min-content Sizes in Multi-column Layout with a computed 'column-width' of ''column-width/auto'' is the largest min-content inline-size contribution 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.

Max-content Sizes in Unconstrained-height Multi-column Layout

@@ -493,7 +494,8 @@ Max-content Sizes in Unconstrained-height Multi-column Layout is its 'column-count' multiplied by the larger of its 'column-width' (treating ''column-width/auto'' as zero) - and the largest min-content inline-size contribution of its contents. + and the largest min-content inline-size contribution of its contents, + plus its 'column-gap' multiplied by 'column-count' minus 1.

Note that the contents of the multi-column element @@ -506,7 +508,8 @@ Max-content Sizes in Unconstrained-height Multi-column Layout 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.