Skip to content

Commit 3e61d0d

Browse files
committed
[css-tables] Table-layout revamp
1 parent 67f362e commit 3e61d0d

1 file changed

Lines changed: 18 additions & 5 deletions

File tree

css-tables-3/Overview.bs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -227,12 +227,13 @@ spec:css21; type:property; text:max-width
227227
other than, optionally, an anonymous inline containing only white spaces.
228228
A sequence of sibling boxes is consecutive
229229
if each box in the sequence is consecutive to the one before it in the sequence.
230-
</dl>
231230

232231
<dt><dfn id="table-slot">slot</dfn>
233232
<dd>
234233
The <a>slot</a> is an available space created by the intersection of and inline and block
235234
<a>table-track</a>.
235+
236+
</dl>
236237

237238
<!--------------------------------------------------------------------------------->
238239
<h3 id="fixup">Fixup</h3>
@@ -397,7 +398,7 @@ spec:css21; type:property; text:max-width
397398
The default style sheet for HTML4 illustrates how its model maps to css properties and values:
398399

399400
<div class="note">
400-
Some extensions to CSS have been used where contraints not mappable to current CSS apply
401+
Some extensions to CSS have been used for contraints not mappable to current CSS constructs
401402
</div>
402403

403404
<pre class="lang-css">
@@ -858,8 +859,11 @@ spec:css21; type:property; text:max-width
858859

859860
<p class="advisement">
860861
The computed value of the 'table-layout' property is equal to its specified value,
861-
except if the specified width of the table root is not a &lt;length-percentage&gt;
862-
in this case, the computed value of the property is always <code>auto</code>.
862+
except if the specified width of the table root is not either
863+
a <code>&lt;length-percentage&gt</code>,
864+
<code>min-content</code> or
865+
<code>fit-content</code>;
866+
in the other cases, the computed value of the property is always <code>auto</code>.
863867

864868
<p>
865869
When the 'table-layout' property computes to <code>fixed</code>,
@@ -1493,7 +1497,7 @@ spec:css21; type:property; text:max-width
14931497
In addition, the min-content and max-content width of cells
14941498
is considered zero unless they are directly specified
14951499
as a length-percentage, in which case they are resolved
1496-
based on the table width (which must be definite as a result).
1500+
based on the table width (if it is definite, otherwise use 0).
14971501

14981502
<dl>
14991503
<!--------------------------------------------------------------------------------->
@@ -2106,6 +2110,15 @@ spec:css21; type:property; text:max-width
21062110
are increased by equal amounts
21072111
so the total increase adds to the excess width.
21082112
</ul>
2113+
2114+
<div class="advisement">
2115+
These rules do not apply when 'table-layout' computes to "fixed".
2116+
In this case, the simpler rules that follow apply instead:
2117+
<ul><li>If there are any columns with no width specified, the excess width is distributed in equally to such columns
2118+
<li>otherwise, if there are columns with non-zero length widths from the base assignment, the excess width is distributed proportionally to width among those columns
2119+
<li>otherwise, if there are columns with non-zero percentage widths from the base assignment, the excess width is distributed proportionally to percentage width among those columns
2120+
<li>otherwise, the excess width is distributed equally to the zero-sized columns</ul>
2121+
</div>
21092122

21102123
<!--------------------------------------------------------------------------------->
21112124
<h3 id="height-distribution">Available Height Distribution</h3>

0 commit comments

Comments
 (0)