Skip to content

Commit 2867c75

Browse files
committed
[css-multicol-2] Add column-span: auto
1 parent f23b2e1 commit 2867c75

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

css-multicol-2/Overview.bs

+17-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ Spanning columns</h2>
140140

141141
<pre class="parial propdef">
142142
Name: column-span
143-
Value: none | <<integer>> | all
143+
Value: none | <<integer>> | all | auto
144144
Initial: none
145145
Applies to: in-flow block-level elements
146146
Inherited: no
@@ -176,6 +176,22 @@ Spanning columns</h2>
176176
</div>
177177

178178
Issue: <a href="https://figures.spec.whatwg.org/">CSS Figures</a> has evolved into a different approach.
179+
<dt><dfn>auto</dfn>
180+
<dd>
181+
The number of columns spanned by the element
182+
depends on its <a>min-content</a> <a>outer size</a>
183+
in the inline direction of the <a>multi-column element</a>.
184+
If it is smaller than the column width,
185+
this is the same as if ''column-span: none'' had been specified.
186+
Otherwise, the number of columns spanned is the smallest positive integer <var>n</var>
187+
for which <code><var>n</var> × <var>column width</var> + (<var>n</var> - 1) × <var>column gap</var></code>
188+
is larger than the <a>min-content</a> <a>outer size</a>.
189+
If this would be larger than the number of columns,
190+
the number of columns spanned will be the same as if ''column-span: all'' had been specified.
191+
192+
Issue: If ''column-span: 1'' does not do the same as ''column-span: none'',
193+
should this behave as ''column-span: 1'' or as 'column-span: none''
194+
when the element is small enough?
179195
</dl>
180196

181197
Issue: Add final content from previous level

0 commit comments

Comments
 (0)