Skip to content

Commit 6ae09c6

Browse files
committed
[css2] Modifications to row height calculations to make spec (1) more in line with PR but (2) not blatantly inadequate. More statements about what is not specified by CSS2. removed some commented text
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%401659
1 parent eb5b791 commit 6ae09c6

1 file changed

Lines changed: 31 additions & 35 deletions

File tree

css2/tables.src

Lines changed: 31 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
22
<html lang="en">
3-
<!-- $Id: tables.src,v 2.39 1998-05-04 20:43:36 bbos Exp $ -->
3+
<!-- $Id: tables.src,v 2.40 1998-05-06 02:27:03 ijacobs Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -850,39 +850,39 @@ class="propinst-height">'height'</span> property for the 'table' or
850850
'inline-table' element. A value of 'auto' means that the height is the
851851
sum of the row heights plus any cell spacing or borders. Any other
852852
value specifies the height explicitly; the table may thus be taller or
853-
shorter than the height of its rows. When shorter, the user agent
854-
should provide a scrolling mechanism to make hidden rows available to
855-
the user. When taller, extra space should be added at the end of the table.
856-
857-
<!-- What do row percentages refer to? Proposed: table
858-
'height' if value other than 'auto', otherwise same as 'auto' -IJ -->
859-
860-
<!-- Note that the above is NOT symmetric with columns since,
861-
if the specified table height is larger than the heights required
862-
by the rows, the UA would have to reflow the entire table to
863-
redistribute the extra height space. This may not be the
864-
case if there is a "fast" algorithm for heights. -IJ -->
853+
shorter than the height of its rows. CSS2 does not specify rendering
854+
when the specified table height differs from the content height, in
855+
particular whether content height should override specified height; if
856+
it doesn't, how extra space should be distributed among rows that add
857+
up to less than the specified table height; or, if the content height
858+
exceeds the specified table height, whether the UA should provide a
859+
scrolling mechanism. <strong>Note.</strong> Future versions of CSS
860+
may specify this further.
865861

866862
<P>The height of a 'table-row' element's box is calculated once the
867863
user agent has all the cells in the row available: it is the maximum
868864
of the row's specified <span class="propinst-height">'height'</span>
869865
and the minimum height (MIN) required by the cells. A <span
870866
class="propinst-height">'height'</span> value of 'auto' for a
871-
'table-row' means the computed row height is MIN. MIN depends on
872-
cell box heights and cell box alignment (much like the calculation of
873-
a <a href="visudet.html#line-height">line box</a> height).
874-
875-
<!-- What about cells that span more than one row? -IJ -->
876-
877-
<!-- Is there an equivalent to a "fast" algo for heights?
878-
Namely: the height of the first box in the row establishes
879-
the height of the row?
880-
If there is a fast algorithm, specify how overflow occurs. -IJ -->
881-
882-
<P>The height of a cell box is given by the table cell's <span
883-
class="propinst-height">'height'</span> property. A value of 'auto'
884-
means the computed height is the minimum height required by the content;
885-
any other value sets the height explicitly.
867+
'table-row' means the computed row height is MIN. MIN depends on cell
868+
box heights and cell box alignment (much like the calculation of a <a
869+
href="visudet.html#line-height">line box</a> height). CSS2 does not
870+
define what percentage values of <span
871+
class="propinst-height">'height'</span> refer to when specified for
872+
table rows and row groups.
873+
874+
<P>In CSS2, the height of a cell box is the maximum of the table
875+
cell's <span class="propinst-height">'height'</span> property and the
876+
minimum height required by the content (MIN). A value of 'auto' for
877+
<span class="propinst-height">'height'</span> implies a computed value
878+
of MIN. CSS2 does not define what percentage values of <span
879+
class="propinst-height">'height'</span> refer to when specified for
880+
table cells.
881+
882+
<P>CSS2 does not specify how cells that span more than row
883+
affect row height calculations except that the sum of the row
884+
heights involved must be great enough to encompass the cell
885+
spanning the rows.
886886

887887
<P>The <span class="propinst-vertical-align">'vertical-align'</span>
888888
property of each table cell determines its alignment within the row.
@@ -907,6 +907,8 @@ rows).
907907
baseline instead.
908908
</dl>
909909

910+
<!-- Add statement about cells that span more than one row? -IJ -->
911+
910912
<p>The baseline of a cell is the baseline of the first line of text in
911913
the cell. If there is no text, the baseline is the baseline of
912914
whatever object is displayed in the cell, or, if it has none, the
@@ -926,7 +928,7 @@ the largest height above the baseline, so that determines the baseline
926928
of the row. Note that if there is no cell box aligned at its
927929
baseline, the row will not have (nor need) a baseline.</p>
928930

929-
<p>To avoid ambiguous situations, the alignment of cells proceeds in
931+
<p>To avoid ambiguous situations, the alignment of cells proceeds in
930932
the following order:</p>
931933

932934
<ol>
@@ -1402,12 +1404,6 @@ cells.
14021404
<dd>The header is spoken before every pertinent cell.
14031405
</dl>
14041406

1405-
<!--
1406-
<p>[Add speak:header-cell|data-cell, and some way to mirror the
1407-
axis/headers attributes? -BB]
1408-
</p>
1409-
-->
1410-
14111407
<p>Each document language may have different mechanisms that allow
14121408
authors to specify headers. For example, in HTML 4.0 ([[HTML40]]), it
14131409
is possible to specify header information with three different

0 commit comments

Comments
 (0)