Re: Column proposal in CSS-3 - Need for :column pseudo-class, etc.

> That would be good, but no rule that could change the size of the
> column could be used, for example: border-* margin-* padding-* height,
> width, font-size (because lengths can be dependent on em), etc....
>
> The reason for this is obvious if you try to imagine the result of:
>
>    P { display: columns; }
>    P:column(1) { width: 50%; }
>    P:column(2) { width: 40%; }
>    P:column(3) { width: 20%; }
>    P:column(last) { width: 60%; }
>
> The first column would be 50% wide, the second 40%, and the third
> would not fit. So it would try to have two columns. That means that
> the last column would be column 2, which would thus be made 60% wide.
> But of course that would mean it could not fit. So the last column
> would be column 1, which would be made 60% wide, but then column 2
> would fit, so it would be the last column. So it would be made 60%
> wide, and.... ARG!
>
> So the :column(last) pseudo-element would be limited to colour and
> background type stuff. Is it worse it?

If 2 columns, after applying the :column(last) style, do not fit, then only
1 column should be used. There's no reason to try 2 columns again.

Sjoerd Visscher

Received on Friday, 15 October 1999 18:24:24 UTC