11<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22<html lang="en">
3- <!-- $Id: tables.src,v 2.68 2003-08-20 16:44:50 bbos Exp $ -->
3+ <!-- $Id: tables.src,v 2.69 2003-12-01 16:11:33 bbos Exp $ -->
44<head>
55<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66<title>Tables</title>
@@ -1118,6 +1118,10 @@ specified this way.
11181118agents must find a consistent rule for rounding off in the case of an
11191119odd number of discrete units (screen pixels, printer dots).</p>
11201120
1121+
1122+ <del
1123+ cite="http://lists.w3.org/Archives/Member/w3c-css-wg/2003OctDec/0141.html">
1124+
11211125<p>The diagram below shows how the width of the table, the widths of
11221126the borders, the padding, and the cell width interact. Their relation
11231127is given by the following equation, which holds for every row of the
@@ -1144,7 +1148,57 @@ to the left (resp., right) padding of cell <var>i</var>.</p>
11441148
11451149<p>The half of the border that goes into the margin is taken into
11461150account when determining if the table overflows some ancestor (see
1147- <span class="propinst-overflow">'overflow'</span>).
1151+ <span class="propinst-overflow">'overflow'</span>).</p>
1152+
1153+ </del>
1154+
1155+
1156+ <ins>
1157+
1158+ <p>The diagram below shows how the width of the table, the widths of
1159+ the borders, the padding, and the cell width interact. Their relation
1160+ is given by the following equation, which holds for every row of the
1161+ table:</p>
1162+
1163+ <blockquote>
1164+ <p><var>row-width</var> = (0.5 * <var>border-width</var><sub>0</sub>)
1165+ + <var>padding-left</var><sub><var>1</sub> +
1166+ <var>width</var><sub>1</sub> + <var>padding-right</var><sub>1</sub> +
1167+ <var>border-width</var><sub>1</sub> +
1168+ <var>padding-left</var><sub>2</sub> +...+
1169+ <var>padding-right</var><sub><var>n</var></sub> + (0.5 *
1170+ <var>border-width</var><sub><var>n</var></sub>)</p>
1171+ </blockquote>
1172+
1173+ <p>Here <var>n</var> is the number of cells in the row,
1174+ <var>padding-left</var><sub><var>i</var></sub> and
1175+ <var>padding-right</var><sub><var>i</var></sub> refer to the left
1176+ (resp., right) padding of cell <var>i</var>, and
1177+ <var>border-width</var><sub><var>i</var></sub> refers to the border
1178+ between cells <var>i</var> and <var>i</var> + 1.</p>
1179+
1180+ <p>UAs must compute an initial left and right border width for the
1181+ table by examining the first and last cells in the first row of the
1182+ table. The left border width of the table is half of the first cell's
1183+ collapsed left border, and the right border width of the table is half
1184+ of the last cell's collapsed right border. If subsequent rows have
1185+ larger collapsed left and right borders, then any excess spills into
1186+ the margin area of the table.</p>
1187+
1188+ <p>The top border width of the table is computed by examining all
1189+ cells who collapse their top borders with the top border of the table.
1190+ The top border width of the table is equal to half of the maximum
1191+ collapsed top border. The bottom border width is computed by examining
1192+ all cells whose bottom borders collapse with the bottom of the table.
1193+ The bottom border width is equal to half of the maximum collapsed
1194+ bottom border.</p>
1195+
1196+ <p>Any borders that spill into the margin are taken into account when
1197+ determining if the table overflows some ancestor (see <span
1198+ class="propinst-overflow">'overflow'</span>).</p>
1199+
1200+ </ins>
1201+
11481202
11491203<div class="figure">
11501204<p><img src="images/tbl-width.png" alt="Schema showing the widths of
0 commit comments