Skip to content

Commit 73254bd

Browse files
committed
[css-tables] Step towards getting closer to css-sizing naming
1 parent 2587e53 commit 73254bd

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

css-tables-3/Overview.bs

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -413,12 +413,20 @@ spec:css21; type:property; text:max-width
413413
<h3 id="layout-principles">Core layout principles</h3>
414414

415415
<p>
416-
Unlike other block elements, tables do not fill their containing block by default.
417-
By default, the width of a table depends on the width required to fit its columns preferred width.
418-
The minimum width of a table is the width required to fit all its columns min-width and its undistributable spaces.
416+
Unlike other block-level elements, tables do not fill their containing block by default.
417+
When their 'width' computes to <code>auto</code>, they behave as if they had <code>fit-content</code> specified instead.
418+
This is different from most block-level elements, which behave as if they had <code>fill-available</code> instead.
419419

420420
<p>
421-
If the width assigned to a table is larger than its minimum width,
421+
The <dfn id="min-content-width-of-a-table">min-content width of a table</dfn> is
422+
the width required to fit all of its columns min-content widths and its undistributable spaces.
423+
424+
<p>
425+
The <dfn id="max-content-width-of-a-table">max-content width of a table</dfn> is
426+
the width required to fit all of its columns max-content widths and its undistribute spaces.
427+
428+
<p>
429+
If the width assigned to a table is larger than its <a href="#min-content-width-of-a-table">min-content width</a>,
422430
the <a href="#width-distribution">Available Width Distribution</a> algorithm
423431
will adjust column widths in consequence.
424432

@@ -435,11 +443,6 @@ spec:css21; type:property; text:max-width
435443

436444
<p>To layout a table, user agents must apply the following actions:
437445
<ol>
438-
<li><b>If the table has at least one caption, compute their minimum width.</b><br/>
439-
This is done by computing the caption's min-content width (including margins, borders and paddings)
440-
under the assumption their parent has a zero width and overflow:visible.
441-
The largest such width will be known as <a href="#capmin">CAPMIN</a>.
442-
443446
<li><b>Determine the number of rows/columns the table requires.</b><br/>
444447
This is done by executing the steps described in [[#dimensioning-the-row-column-grid]].
445448

@@ -448,7 +451,7 @@ spec:css21; type:property; text:max-width
448451
<li><b>Ensure each cell <a>slot</a> is occupied by at least one cell.</b><br/>
449452
This is done by executing the steps described in [[#missing-cells-fixup]].
450453

451-
<li><b>Compute the minimum width of each row/column.</b><br/>
454+
<li><b>Compute the minimum width of each column.</b><br/>
452455
This is done by executing the steps described in [[#content-measure]].
453456

454457
<li><b>Compute the width of the table.</b><br/>
@@ -1494,9 +1497,7 @@ spec:css21; type:property; text:max-width
14941497

14951498
<p>
14961499
The <dfn id="capmin">caption width minimum (CAPMIN)</dfn> is
1497-
the greatest of the minimum caption outer widths defined for each <a href="#table-caption">caption</a>, where
1498-
the minimum caption outer width of a caption is the <a>min-content width</a> of a hypothetical table cell
1499-
that contains the caption formatted as "display: block".
1500+
the largest of the <a href="#table-caption">table captions</a> <a>min-content contribution</a>.
15001501

15011502
<p>
15021503
The <dfn id="gridmin">row/column-grid width minimum (GRIDMIN)</dfn> width is

0 commit comments

Comments
 (0)