@@ -966,8 +966,9 @@ <h3 id=pseudo-algorithm><span class=secno>3.4. </span>Pseudo-algorithm</h3>
966966 < p > The pseudo-algorithm below determines the used values for ‘< a
967967 href ="#column-count "> < code class =property > column-count</ code > </ a > ’ (N)
968968 and ‘< a href ="#column-width "> < code
969- class =property > column-width</ code > </ a > ’ (W). There is one other variable
970- in the pseudo-algorithm: U is the used width of the multi-column element.
969+ class =property > column-width</ code > </ a > ’ (W) when . There is one other
970+ variable in the pseudo-algorithm: U is the used width of the multi-column
971+ element.
971972
972973 < p class =note > The used width U of the multi-column element can depend on
973974 the element's contents, in which case it also depends on the computed
@@ -991,20 +992,22 @@ <h3 id=pseudo-algorithm><span class=secno>3.4. </span>Pseudo-algorithm</h3>
991992 < p > The < code > floor(X)</ code > function returns the largest integer Y ≤ X.
992993
993994 < pre >
994- (01) if column-width = auto then
995- (02) N := column-count
996- (03) else if column-count = auto then
997- (04) N := max(1,
998- (05) floor((U + column-gap)/(column-width + column-gap)))
999- (06) else
1000- (07) N := min(column-count, max(1,
1001- (08) floor((U + column-gap)/(column-width + column-gap))))
995+ (01) if ((column-width = auto) and (column-count = auto)) then
996+ (02) exit; /* not a multicol element */
997+ (03) if column-width = auto then
998+ (04) N := column-count
999+ (05) else if column-count = auto then
1000+ (06) N := max(1,
1001+ (07) floor((U + column-gap)/(column-width + column-gap)))
1002+ (08) else
1003+ (09) N := min(column-count, max(1,
1004+ (10) floor((U + column-gap)/(column-width + column-gap))))
10021005</ pre >
10031006
10041007 < p > And:
10051008
10061009 < pre >
1007- (09 ) W := max(0, ((U + column-gap)/N - column-gap)
1010+ (11 ) W := max(0, ((U + column-gap)/N - column-gap)
10081011</ pre >
10091012
10101013 < p > In paged media, user agents may perform this calculation on a per-page
0 commit comments