You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td><img src="images/percentage-heights-hundred-percent.png" width="23" height="29" style="vertical-align: middle" alt="100%" title="Percentage honored during second layout pass"></td>
1976
-
</tr>
1977
-
<tr>
1978
-
<td><i style="opacity:0.5"><any></i></td>
1979
-
<td><length></td>
1980
-
<td><img src="images/percentage-heights-hundred-percent.png" width="23" height="29" style="vertical-align: middle" alt="100%" title="Percentage honored during second layout pass"></td>
1981
-
</tr>
1982
-
<tr>
1983
-
<td><i style="opacity:0.5"><any></i></td>
1984
-
<td><percentage></td>
1985
-
<td><img src="images/percentage-heights-hundred-percent.png" width="23" height="29" style="vertical-align: middle" alt="100%" title="Percentage honored during second layout pass"></td>
1986
-
</tr>
1987
-
<tr>
1988
-
<td>auto</td>
1989
-
<td>auto</td>
1990
-
<td><img src="images/percentage-heights-auto.png" width="23" height="29" style="vertical-align: middle" alt="auto" title="Percentage ignored; no second layout pass"></td>
1991
-
</tr>
1992
-
<tr>
1993
-
<td><percentage></td>
1994
-
<td>auto</td>
1995
-
<td><img src="images/percentage-heights-auto.png" width="23" height="29" style="vertical-align: middle" alt="auto" title="Percentage ignored; no second layout pass"></td>
1996
-
</tr>
1997
-
</tbody>
1998
-
</table>
1999
-
2000
-
Note that neither <code>--other-table-cell-height</code> nor <code>--wrapper-height</code> do influence the algorithm's outcome.
2001
-
2002
-
A previous version of this specification incorrectly stated that <code>--wrapper-height</code> was taken into account when the table had a percentage height,
2003
-
but compat issues appeared when an implementation landed, and the behavior was then special-cased.
2004
-
2005
-
</div>
2006
-
2007
-
<div class="note">
2008
-
It is possible that this second layout pass (where height percentages are being resolved)
2009
-
will make some cell contents overflow their parent cell. This is by design.
2010
-
</div>
1912
+
Once the table height has been determined,
1913
+
rows will usually get a <a href="#row-relayout">second layout pass</a> (where their cells' heights are no longer considered auto),
1914
+
then <a href="#height-distribution-algorithm">height distribution</a> will happen to adjust their heights to collectively meet the table height,
1915
+
then table-cell descendants might get a <a href="#table-cell-content-relayout">second layout</a> (where their percentage heights are resolved).
<td><img src="images/percentage-heights-hundred-percent.png" width="23" height="29" style="vertical-align: middle" alt="100%" title="Percentage honored during second layout pass"></td>
2320
+
</tr>
2321
+
<tr>
2322
+
<td><i style="opacity:0.5"><any></i></td>
2323
+
<td><length></td>
2324
+
<td><img src="images/percentage-heights-hundred-percent.png" width="23" height="29" style="vertical-align: middle" alt="100%" title="Percentage honored during second layout pass"></td>
2325
+
</tr>
2326
+
<tr>
2327
+
<td><i style="opacity:0.5"><any></i></td>
2328
+
<td><percentage></td>
2329
+
<td><img src="images/percentage-heights-hundred-percent.png" width="23" height="29" style="vertical-align: middle" alt="100%" title="Percentage honored during second layout pass"></td>
2330
+
</tr>
2331
+
<tr>
2332
+
<td>auto</td>
2333
+
<td>auto</td>
2334
+
<td><img src="images/percentage-heights-auto.png" width="23" height="29" style="vertical-align: middle" alt="auto" title="Percentage ignored; no second layout pass"></td>
2335
+
</tr>
2336
+
<tr>
2337
+
<td><percentage></td>
2338
+
<td>auto</td>
2339
+
<td><img src="images/percentage-heights-auto.png" width="23" height="29" style="vertical-align: middle" alt="auto" title="Percentage ignored; no second layout pass"></td>
2340
+
</tr>
2341
+
</tbody>
2342
+
</table>
2343
+
2344
+
Note that neither <code>--other-table-cell-height</code> nor <code>--wrapper-height</code> do influence the algorithm's outcome.
2345
+
2346
+
A previous version of this specification incorrectly stated that <code>--wrapper-height</code> was taken into account when the table had a percentage height,
2347
+
but compat issues appeared when an implementation landed, and the behavior was then special-cased.
2348
+
2349
+
</div>
2350
+
2351
+
<div class="note">
2352
+
It is possible that this second layout pass (where height percentages are being resolved)
2353
+
will make some cell contents overflow their parent cell,
2354
+
for instance if the sum of all percentages used is superior to 100%.
0 commit comments