|
1 | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> |
2 | 2 | <html lang="en"> |
3 | | -<!-- $Id: tables.src,v 2.123 2010-10-18 21:58:44 bbos Exp $ --> |
| 3 | +<!-- $Id: tables.src,v 2.124 2010-10-25 17:28:27 bbos Exp $ --> |
4 | 4 | <head> |
5 | 5 | <title>Tables</title> |
6 | 6 | </head> |
@@ -931,22 +931,31 @@ final layout and may demand more than one pass. |
931 | 931 |
|
932 | 932 | </ol> |
933 | 933 |
|
934 | | -<p>This gives a maximum and minimum width for each column. Column |
| 934 | +<p>This gives a maximum and minimum width for each column. |
| 935 | + |
| 936 | +<p>The caption width minimum (CAPMIN) is determined by calculating for |
| 937 | +each caption the minimum caption outer width as the MCW of a |
| 938 | +hypothetical table cell that contains the caption formatted as |
| 939 | +"display: block". The greatest of the minimum caption outer widths is |
| 940 | +CAPMIN. |
| 941 | + |
| 942 | +<p>Column and caption |
935 | 943 | widths influence the final table width as follows: |
936 | 944 |
|
937 | 945 | <ol> |
938 | 946 | <li>If the 'table' or 'inline-table' element's <span |
939 | 947 | class="propinst-width">'width'</span> property has a computed value |
940 | | - (W) other than 'auto', the property's value as used for layout is |
941 | | - the greater of W and the minimum width required by all the columns |
942 | | - plus cell spacing or borders (MIN). If W is greater than MIN, the |
| 948 | + (W) other than 'auto', the used width is |
| 949 | + the greater of W, CAPMIN, and the minimum width required by all the |
| 950 | + columns plus cell spacing or borders (MIN). If the used width is |
| 951 | + greater than MIN, the |
943 | 952 | extra width should be distributed over the columns. |
944 | 953 |
|
945 | 954 | <li>If the 'table' or 'inline-table' element has 'width: auto', |
946 | | - the table width used for layout is the greater of the table's |
947 | | - containing block width and MIN. However, if the maximum width |
| 955 | + the used width is the greater of the table's containing block width, |
| 956 | + CAPMIN, and MIN. However, if either CAPMIN or the maximum width |
948 | 957 | required by the columns plus cell spacing or borders (MAX) is less |
949 | | - than that of the containing block, use MAX. |
| 958 | + than that of the containing block, use max(MAX, CAPMIN). |
950 | 959 | </ol> |
951 | 960 |
|
952 | 961 | <p>A percentage value for a column width is relative to the table |
|
0 commit comments