Skip to content

Commit c94bf5c

Browse files
committed
[css2] Changed cell-spacing to border-spacing
--HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%40898
1 parent 9789a61 commit c94bf5c

2 files changed

Lines changed: 14 additions & 17 deletions

File tree

css2/properties/properties.db

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,11 +336,9 @@ leftwards | rightwards | inherit;;
336336
/* row-span;; <integer> | inherit;; 1;; 'table-cell' elements;; no;; N/A ;; visual*/
337337
/* caption-side;; top | bottom | left | right | inherit;; top;; 'table-caption' elements;; yes;; N/A ;; visual*/
338338
/* speak-header;; once | always | inherit;; once;; elements that
339-
have header information;; yes;; N/A ;; visual*/
340-
/* cell-spacing;; none | <length> <length>? | inherit;; none;; 'table'
339+
have header information;; yes;; N/A ;; aural*/
340+
/* border-spacing;; none | <length> <length>? | inherit;; none;; 'table'
341341
and 'inline-table' elements;; yes;; N/A;; visual */
342-
/* border-collapse;; collapse | separate | inherit;; separate;; 'table' elements;;
343-
no;; N/A;; visual */
344342
/* table-layout;; auto | fixed | inherit ;; auto;; 'table'
345343
and 'inline-table' elements;;
346344
no;; N/A;; visual */

css2/tables.src

Lines changed: 12 additions & 13 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.5 1998-02-12 00:02:27 ijacobs Exp $ -->
3+
<!-- $Id: tables.src,v 2.6 1998-02-13 18:23:11 ijacobs Exp $ -->
44
<head>
55
<meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">
66
<title>Tables</title>
@@ -71,7 +71,7 @@ solid blue border and each of the other rows will be surrounded by a
7171
1px solid black border:</P>
7272

7373
<PRE>
74-
TABLE { cell-spacing: none }
74+
TABLE { border-spacing: none }
7575
TR#row1 { border-top: 3px solid blue }
7676
TR#row2 { border-top: 1px solid black }
7777
TR#row3 { border-top: 1px solid black }
@@ -540,7 +540,7 @@ i.e., to easily design evenly spaced table cells in a table.</p>
540540

541541
<p><em>[Can this work? Maybe it is better to say that table elements
542542
(other than 'table' and 'inline-table') have no margins at all, and
543-
instead use a single 'cell-spacing' property for the whole table, or a
543+
instead use a single 'border-spacing' property for the whole table, or a
544544
single horizontal and a single vertical spacing (see
545545
below). Example:</em></p>
546546

@@ -979,11 +979,10 @@ other is suitable for borders that are continuous from one end of the
979979
table to the other. Many border styles can be achieved with either
980980
model, so it is often a matter of taste which model is used.
981981

982-
<!-- #include src=properties/cell-spacing.srb -->
983-
<!-- maybe-include src=properties/border-collapse.srb -->
982+
<!-- #include src=properties/border-spacing.srb -->
984983

985984
<P>This property <span
986-
class="propinst-cell-spacing">'cell-spacing'</span> selects a table's
985+
class="propinst-border-spacing">'border-spacing'</span> selects a table's
987986
border model. Values have the following meanings:</p>
988987

989988
<dl>
@@ -1006,7 +1005,7 @@ not be negative.
10061005
<h3><a name="2D">The 2�D border model</a></h3>
10071006

10081007
<p>In this model, each cell has a single rectangular border. The
1009-
<span class="propinst-cell-spacing">'cell-spacing'</span> property
1008+
<span class="propinst-border-spacing">'border-spacing'</span> property
10101009
specifies the distance between the borders of adjacent cells. This
10111010
space is filled with the background of the table element. Rows,
10121011
columns, row groups, and column groups cannot have borders (i.e., user
@@ -1019,22 +1018,22 @@ those elements.
10191018
this:
10201019

10211020
<pre>
1022-
TABLE {border: outset 10pt; cell-spacing: 15pt}
1021+
TABLE {border: outset 10pt; border-spacing: 15pt}
10231022
TD {border: inset 5pt}
10241023
TD.special {border: inset 10pt} /* The top-left cell */
10251024
</pre>
10261025

10271026
<div class=figure>
1028-
<p><img src="images/tbl-spacing.gif" alt="A table with cell-spacing"></p>
1027+
<p><img src="images/tbl-spacing.gif" alt="A table with border-spacing"></p>
10291028
<p class=caption>Figure 3. A table with <span
1030-
class="propinst-cell-spacing">'cell-spacing'</span> set to a length
1029+
class="propinst-border-spacing">'border-spacing'</span> set to a length
10311030
value. Note that each cell has its own border, and the table has a
10321031
separate border as well.
10331032
</div>
10341033
</div>
10351034

10361035
<P>When this border model is used, the overall width of the table is
1037-
the sum of the cells plus the cell-spacing between all borders. See
1036+
the sum of the cells plus the border-spacing between all borders. See
10381037
the section on <a href="#auto-table-layout">automatic table layout</a>
10391038
for more information about table dimension calculations.
10401039

@@ -1228,7 +1227,7 @@ borders:</p>
12281227
<p>HTML source:</p>
12291228

12301229
<pre class="html-example">
1231-
&lt;TABLE style="cell-spacing: none; border: solid;"&gt;
1230+
&lt;TABLE style="border-spacing: none; border: solid;"&gt;
12321231
&lt;TR&gt;&lt;TD style="border: hidden"&gt;foo&lt;/TD&gt;
12331232
&lt;TD style="border: solid"&gt;bar&lt;/TD&gt;&lt;/TR&gt;
12341233
&lt;TR&gt;&lt;TD style="border: none"&gt;foo&lt;/TD&gt;
@@ -1333,8 +1332,8 @@ cells.
13331332
axis/headers attributes? -BB]
13341333

13351334
[Perhaps rename 'speak-cell'? -IJ]
1336-
13371335
</p>
1336+
-->
13381337

13391338
<!-- I propose this instead of requiring the mechanism
13401339
to be that of HTML 4.0 -IJ -->

0 commit comments

Comments
 (0)