@@ -1481,19 +1481,7 @@ spec:css21; type:property; text:max-width
14811481 As noted before, this would usually be the sum of preferred width of all columns, plus any extra.
14821482 In this case, the width distribution will result in giving each column its preferred width.
14831483 There are however a few cases where the author asks for some other width explicitly,
1484- as well as a few cases where the table cannot be given the width it requires.
1485-
1486- <p class="issue">
1487- We need to choose how captions affect the sizing of a table (see Alernatives)
1488- <a class="hint" href="https://jsfiddle.net/z8sevu0f/">Test case</a>
1489-
1490- <p class="advisement">
1491- <b> Alternative I</b> :<br/>
1492- This is what was specced in CSS 2.1.<br/>
1493- <div class="hint" style="font-size: 50%">
1494- Only Chrome implemented this alternative.
1495- <a href="http://codepen.io/anon/pen/vLXEON">Test case</a>
1496- </div>
1484+ as well as a few cases where the table cannot be given the width it requires.
14971485
14981486 <p>
14991487 The <dfn id="capmin">caption width minimum (CAPMIN)</dfn> is
@@ -1542,103 +1530,6 @@ spec:css21; type:property; text:max-width
15421530 Setting the width of a column may indirectly influence the height of a row, and vice versa.
15431531 </div>
15441532
1545- <p class="advisement">
1546- <b> Alternative II</b> :<br/>
1547- This is what was specced by David Baron.
1548- I think we want to drop this proposal for being too complex.</p>
1549-
1550- <div class="hint" style="font-size: 50%">
1551- Gecko and Edge implemented this alternative.
1552- <a href="http://codepen.io/anon/pen/vLXEON">Test case</a> <br/>
1553- Gecko also supports vertical-mode-captions; Edge is buggy.
1554- <a href="http://codepen.io/FremyCompany/pen/YwGPWw">Test case</a>
1555- </div>
1556-
1557- <details>
1558- <summary tabindex="0"> ...</summary>
1559- <aside>
1560- <p class="note">
1561- This specification currently defines
1562- the intrinsic widths of tables (including inline-tables)
1563- as a parameter of the table excluding its caption, but
1564- the outer intrinsic widths of tables
1565- as a parameter of the table including its caption.
1566- This distinction is needed because the intrinsic widths exclusive of the caption are critical to the final table layout algorithm.
1567- However, it may be better to have a separate term for these parameters
1568- rather than overloading these existing terms by adding this strange distinction.
1569-
1570- <p>
1571- The <b> min-content width of a table-root</b> is the sum of
1572- the min-content widths of the columns and
1573- the total horizontal border spacing of the table.
1574-
1575- <p>
1576- The <b> max-content width of a table-root</b> is the sum of
1577- the total horizontal border spacing of the table
1578- and the largest of:
1579- <ul>
1580- <li> the sum of the max-content widths of the columns
1581- <li> the small percentage contribution of each of the columns,
1582- where the small percentage contribution of a column is defined as the ratio of
1583- <ol>
1584- <li> the column's max-content width to
1585- <li> its intrinsic percentage width (where 100% == 1.0)
1586- </ol>
1587- <div class="note">
1588- This ensures that cells, columns, or column groups with small percentage widths
1589- have those percentage widths satisfied when possible.
1590- </div>
1591- <li> the large percentage contribution of the table, which is the ratio of
1592- <ol>
1593- <li> the sum of the max-content widths of all the columns
1594- whose intrinsic percentage width is zero to
1595- <li> 100% (1.0) minus the sum of the intrinsic percentage widths of the columns,
1596- </ol>
1597- unless the denominator of that ratio is 0,
1598- in which case it is 0 if the numerator is also 0,
1599- and an infinitely large number if the numerator is nonzero
1600- <div class="note">
1601- This ensures that cells, columns, or column groups with large percentage widths
1602- have those percentage widths satisfied when possible.
1603- </div>
1604- <div class="issue">
1605- It would be nice to prove that there's no need to iterate over the columns separately.
1606- David Baron thinks this is true because in such cases the small percentage effect would win.
1607- </div>
1608- </ul>
1609-
1610- <p>
1611- The <b> outer min-content width of the non-caption part of a <a>table-root</a> </b> is defined to be
1612- <code> max('min-width' , the min-content width of the table, min('width' , 'max-width' ))</code>
1613- adjusted by the table intrinsic offset.
1614-
1615- <p>
1616- The <b> outer min-content width of a <a>table-root</a> </b> is defined to be the larger of:
1617- <ul>
1618- <li> the outer min-content width of the caption
1619- <li> the sum of the outer min-content width of the non-caption part of the table and
1620- the margin values used to compute the outer max-content/min-content width
1621- <div class="issue"> margin values aren't used that way anymore</div>
1622- </ul>
1623-
1624- <p>
1625- The <b> outer max-content width of the non-caption part of a <a>table-root</a> </b> is defined to be
1626- <code> max('min-width' , min-content, min('width' , 'max-width' , max-content))</code>
1627- adjusted by the table intrinsic offset.
1628-
1629- <p>
1630- The <b> outer max-content width of a <a>table-root</a> </b> is defined to be the larger of:
1631- <ul>
1632- <li> the outer max-content width of the caption
1633- <li> the sum of the outer max-content width of the non-caption part of the table and
1634- the margin values used to compute the outer max-content/min-content width
1635- <div class="issue"> margin values aren't used that way anymore</div>
1636- <div class="issue"> this algorithm needs to account for percentage margin and padding correctly</div>
1637- </ul>
1638-
1639- </aside>
1640- </details>
1641-
16421533 <!--------------------------------------------------------------------------------->
16431534 <h4 id="width-distribution-principles">Core distribution principles</h3>
16441535
0 commit comments