You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: css-multicol/Overview.src.html
+34-84Lines changed: 34 additions & 84 deletions
Original file line number
Diff line number
Diff line change
@@ -767,23 +767,11 @@ <h3>'columns'</h3>
767
767
<h3>Pseudo-algorithm</h3>
768
768
769
769
<P>The pseudo-algorithm below determines the used values for
770
-
'column-count' (N) and 'column-width' (W). There are two other
771
-
variables in the pseudo-algorithm:
772
-
773
-
<ul>
774
-
775
-
<li><code>available-width</code>: if the used width of the
776
-
multi-column element has not been determined when the 'column-count'
777
-
and 'column-width' must be determined (e.g., if it is floating with a
778
-
'width' of 'auto' as per CSS 2.1 section 10.3.5) this variable is
779
-
<code>unknown</code>, otherwise it is the same as the used width of
780
-
the multi-column element. In vertical text, the used height replaces used width in this calculation.
781
-
782
-
<li><code>shrink-to-fit</code>: this variable represents the result of
783
-
a <em>shrink-to-fit</em> computation. CSS does not define the exact
784
-
algorithm.
770
+
'column-count' (N) and 'column-width' (W). There is one other variable
771
+
in the pseudo-algorithm: U is the used width of the multi-column
772
+
element.
785
773
786
-
</ul>
774
+
<pclass=note>The used width U of the multi-column element can depend on the element's contents, in which case it also depends on the computed values of the 'column-count' and 'column-width' properties. This specification does not define how U is calculated. Another module (probably the Basic Box Model [[CSS3BOX]] or the Intrinsic & Extrinsic Sizing Module [[CSS3-SIZING]]) is expected to define this.
787
775
788
776
<p>Two assumptions are being made by the pseudo-algorithm:
789
777
@@ -792,52 +780,14 @@ <h3>Pseudo-algorithm</h3>
792
780
<li>that no column breaks are added through style sheets
793
781
</ul>
794
782
795
-
<p>The <code>floor()</code> function rounds a number to the next smaller integer.
783
+
<p>The <code>floor(X)</code> function returns the largest integer Y ≤ X.
796
784
797
-
<!--
798
-
<pre>
799
-
(01) if ((column-width = auto) and (column-count = auto)) or
800
-
(02) ((available-width = unknown) and (column-count = auto)) then
801
-
(03) exit; /* no columns */
802
-
(04) fi
803
-
(05)
804
-
(06) if (available-width = unknown) and (column-count != auto) and (column-width != auto) then
0 commit comments