[csswg-drafts] [css-multicol-2] `columns` shorthand with `column-height` and `column-wrap` (#12050)

mstensho has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-multicol-2] `columns` shorthand with `column-height` and `column-wrap` ==
https://drafts.csswg.org/css-multicol-2/#columns

The value of `columns` is currently defined as:

> [Value:](https://www.w3.org/TR/css-values/#value-defs) [<'column-width'>](https://drafts.csswg.org/css-multicol-2/#propdef-column-width) [||](https://www.w3.org/TR/css-values-4/#comb-any) [<'column-count'>](https://drafts.csswg.org/css-multicol-2/#propdef-column-count) || [<'column-height'>](https://drafts.csswg.org/css-multicol-2/#propdef-column-height) || [<'column-wrap'>](https://drafts.csswg.org/css-multicol-2/#propdef-column-wrap)

I.e. four longhand properties in any order.

This won't work, since there are two length values (`column-width` and `column-height`), so the order would have to be specified.

At the same time, ever since the introduction of multicol, we've been allowed to do `column-count` and `column-width` in any order, so this has to be kept.

Maybe we need a '/' in the syntax, and place `column-height` in the denominator? Or some sort of intricate syntax to allow `column-width` and `column-height` in any order (at least if they're the two first values), but not the rest. In any case, if the author only wants to specify column height, the shorthand will not be super-pretty. `auto / <column-height>`? `auto auto auto <column-height>`?

@rachelandrew 

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12050 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 4 April 2025 11:37:44 UTC