1010
1111< script defer =defer
1212 src ="http://test.csswg.org/harness/annotate.js#css-multicol-1_dev "
13+
1314 type ="text/javascript "> </ script >
1415
1516< style type ="text/css ">
@@ -784,7 +785,7 @@ <h3>'columns'</h3>
784785< h3 > Pseudo-algorithm</ h3 >
785786
786787< P > The pseudo-algorithm below determines the used values for
787- 'column-count' (N) and 'column-width' (W). There is one other variable
788+ 'column-count' (N) and 'column-width' (W) when . There is one other variable
788789in the pseudo-algorithm: U is the used width of the multi-column
789790element.
790791
@@ -807,19 +808,21 @@ <h3>Pseudo-algorithm</h3>
807808
808809
809810< pre >
810- (01) if column-width = auto then
811- (02) N := column-count
812- (03) else if column-count = auto then
813- (04) N := max(1,
814- (05) floor((U + column-gap)/(column-width + column-gap)))
815- (06) else
816- (07) N := min(column-count, max(1,
817- (08) floor((U + column-gap)/(column-width + column-gap))))
811+ (01) if ((column-width = auto) and (column-count = auto)) then
812+ (02) exit; /* not a multicol element */
813+ (03) if column-width = auto then
814+ (04) N := column-count
815+ (05) else if column-count = auto then
816+ (06) N := max(1,
817+ (07) floor((U + column-gap)/(column-width + column-gap)))
818+ (08) else
819+ (09) N := min(column-count, max(1,
820+ (10) floor((U + column-gap)/(column-width + column-gap))))
818821</ pre >
819822
820823< p > And:
821824< pre >
822- (09 ) W := max(0, ((U + column-gap)/N - column-gap)
825+ (11 ) W := max(0, ((U + column-gap)/N - column-gap)
823826</ pre >
824827
825828
0 commit comments