Skip to content

Commit 3711546

Browse files
committed
[css-tables] updated table-layout:fixed behavior
1 parent 694455d commit 3711546

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

css-tables-3/Overview.bs

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,9 @@ spec:css21; type:property; text:max-width
769769
are merged into one single track
770770
for the purpose of computing the layout of the table
771771
if except the first of such sequence of tracks
772-
there is no table-column/table-row element defining them explicitely.
772+
there is no table-column/table-row element defining them explicitely;
773+
if 'table-layout' computes to 'fixed' on the table-root,
774+
columns are however never merged together.
773775
Change the spanning of the cells contained in those tracks
774776
accordingly so that no difference is shown.
775777
<span class="hint">(see <a href="#spanning-ghost-rows">spanning-ghost-rows test cases</a>)</span>
@@ -853,11 +855,19 @@ spec:css21; type:property; text:max-width
853855
Applies To: table-root elements.
854856
Inherited: yes
855857
</pre>
858+
859+
<p class="advisement">
860+
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>.
856863

857864
<p>
858-
When the 'table-layout' property has <code>fixed</code> as its value,
859-
the aggregation algorithm for column sizing is not applied,
860-
and the values determined for the first row of the table are used instead
865+
When the 'table-layout' property computes to <code>fixed</code>,
866+
the content of the table-cells is ignored for the purpose of width computation
867+
the aggregation algorithm for column sizing is not applied beyond the first row,
868+
and the values explicitely specified for the table-columns and the first row of the table are used instead;
869+
columns with undefinite widths are attributed their fair share of the remaining space
870+
after the columns with a definite width have been considered, or 0px if there is no remaining space
861871
(see [[#computing-column-measures]]).
862872

863873
<!--------------------------------------------------------------------------------->
@@ -1476,10 +1486,14 @@ spec:css21; type:property; text:max-width
14761486
computing the column widths of a table.
14771487

14781488
<p class="advisement">
1479-
For the purpose of measuring a column, if 'table-layout' is "fixed",
1489+
For the purpose of measuring a column, if 'table-layout' computes to fixed,
14801490
only cells which originate in the first row of the table
14811491
(after reordering the header and footer)
1482-
will be considered, even if not mentioned explicitely.
1492+
will be considered, if any.
1493+
In addition, the min-content and max-content width of cells
1494+
is considered zero unless they are directly specified
1495+
as a length-percentage, in which case they are resolved
1496+
based on the table width (which must be definite as a result).
14831497

14841498
<dl>
14851499
<!--------------------------------------------------------------------------------->
@@ -1489,7 +1503,8 @@ spec:css21; type:property; text:max-width
14891503
<li>the outer min-content width of the column group, if any
14901504
<li>the outer min-content width of the column, if any
14911505
<li>the outer min-content width of each cell in the column whose column-span is 1
1492-
(or just the one in the first row if 'table-layout' is "fixed") or 0 if there is none
1506+
(or just the one in the first row if 'table-layout' is "fixed")
1507+
or 0 if there is none
14931508
</ul>
14941509

14951510
<!--------------------------------------------------------------------------------->

0 commit comments

Comments
 (0)