Skip to content

Commit 0c32fc5

Browse files
committed
[css-tables-3] Define the used min-width of a table (fix w3c#2442)
1 parent 2ec59ee commit 0c32fc5

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

css-tables-3/Overview.bs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,15 +1520,20 @@ spec:css-sizing-3; type:property; text:box-sizing
15201520
the sum of the <a href="#max-content-width-of-a-column">max-content width</a> of all the columns
15211521
plus cell spacing or borders.
15221522

1523+
The <dfn id="used-min-width-of-table">used min-width of a table</dfn> is
1524+
the greater of
1525+
the resolved 'min-width',
1526+
<a href="#capmin">CAPMIN</a>, and
1527+
<a href="#gridmin">GRIDMIN</a>.
1528+
15231529
The <dfn id="used-width-of-table">used width of a table</dfn> depends on the columns and captions widths as follows:
15241530

15251531
<ul>
1526-
<li>If the <a>table-root</a>'s 'width' property has a computed value (<dfn>W</dfn>)
1532+
<li>If the <a>table-root</a>'s 'width' property has a computed value (resolving to <dfn>resolved-table-width</dfn>)
15271533
other than <code>auto</code>,
15281534
the <a href="#used-width-of-table">used width</a> is the greater of
1529-
<a>W</a>,
1530-
<a href="#capmin">CAPMIN</a>, and
1531-
<a href="#gridmin">GRIDMIN</a>.
1535+
<a>resolved-table-width</a>, and
1536+
the <a href="#used-min-width-of-table">used min-width of the table</a>.
15321537
<div class="note">
15331538
If the used width is greater than <a href="#gridmin">GRIDMIN</a>,
15341539
the extra width should be distributed over the columns.
@@ -1538,8 +1543,7 @@ spec:css-sizing-3; type:property; text:box-sizing
15381543
<li>If the <a>table-root</a> has 'width: auto',
15391544
the <a href="#used-width-of-table">used width</a> is the greater of
15401545
min(<a href="#gridmax">GRIDMAX</a>, the table's containing block width),
1541-
<a href="#capmin">CAPMIN</a>, and
1542-
<a href="#gridmin">GRIDMIN</a>.
1546+
the <a href="#used-min-width-of-table">used min-width of the table</a>.
15431547
</ul>
15441548

15451549
The <dfn>assignable table width</dfn> is

0 commit comments

Comments
 (0)