This commit is contained in:
karnaze%netscape.com 1999-05-18 02:46:51 +00:00
Родитель ad3a5dd636
Коммит c49af2e435
4 изменённых файлов: 123 добавлений и 19 удалений

Просмотреть файл

@ -0,0 +1,34 @@
<HTML><BODY>
This table should have cell spacing of 2px
<table border>
<TR><TD style="border: 3px inset black;">AAA</td><td>BBBB</td></tr>
<TR><TD>AAA</td><td>BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell spacing of 5px
<table border cellspacing=5>
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD>AAA</td><td>BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell spacingX of 5px, spacingY of 10px
<table border style="border-spacing: 5px 10px;">
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD>AAA</td><td>BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell spacingX of 5px, spacingY of 10px
<table border cellspacing=0 style="border-spacing: 5px 10px;">
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD>AAA</td><td>BBBB</td></tr>
</table>
</html>
</body></html>

Просмотреть файл

@ -1,6 +1,8 @@
file://s:/mozilla/layout/html/tests/table/other/cellspacing.html
file://s:/mozilla/layout/html/tests/table/other/cell_widths.html
file://s:/mozilla/layout/html/tests/table/other/empty_cells.html
file://s:/mozilla/layout/html/tests/table/other/nestedTables.html
file://s:/mozilla/layout/html/tests/table/other/padding.html
file://s:/mozilla/layout/html/tests/table/other/slashlogo.html
file://s:/mozilla/layout/html/tests/table/other/wa_table_thtd_rowspan.html
file://s:/mozilla/layout/html/tests/table/other/wa_table_tr_align.html

Просмотреть файл

@ -0,0 +1,39 @@
<HTML><BODY>
This table should have cell padding of 5px
<table border cellpadding=5>
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD>AAA</td><td>BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell padding of 5px
<table border>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell padding of 5px
<table border cellpadding=0>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
<TR><TD style="padding:5px;">AAA</td><td style="padding:5px;">BBBB</td></tr>
</table>
</html>
<BR>
This table should have cell padding of 5px except the 1st cell's left padding will be 0
<table border cellpadding=5>
<TR><TD style="padding-left:0px;">AAA</td><td>BBBB</td></tr>
<TR><TD >AAA</td><td>BBBB</td></tr>
</table>
<BR>
This table should have cell padding of 5px except the last cell's left padding will be 30
<table border cellpadding=5>
<TR><TD>AAA</td><td>BBBB</td></tr>
<TR><TD >AAA</td><td style="padding-left:30px;">BBBB</td></tr>
</table>
</body></html>

Просмотреть файл

@ -113,7 +113,6 @@ layout. This should be long enough.</TD>
</TR>
</TABLE><br>
&nbsp;
<div style="position: relative; top: 190px">
<table cellpadding=2 style="border-collapse:collapse">
<CAPTION ALIGN=BOTTOM>Table 4 has this bottom caption. The table has specified
column widths and collapsing borders.</CAPTION>
@ -149,7 +148,6 @@ column widths and collapsing borders.</CAPTION>
</tr>
</tbody>
</TABLE>
</div>
<BR>
<table>
@ -159,23 +157,22 @@ column widths and collapsing borders.</CAPTION>
</thead>
<tbody style="overflow: auto; height: 200px; border: 1px solid black">
<tr><td><span style="opacity: 50%; font-size: 16pt; color: red; background-color: cyan">cell-00</span><td>cell-01<td>cell-02<td>cell-03
<tr><td>cell-10<td><span style="opacity: 50%; font-size: 16pt; color: green; background-color: purple">cell-11</span><td>cell-12<td>cell-13
<tr><td>cell-20<td>cell-21<td><span style="opacity: 50%; font-size: 16pt; color: yellow; background-color: blue">cell-22</span><td>cell-23
<tr><td>cell-30<td>cell-31<td>cell-32<td><span style="opacity: 50%; font-size: 16pt; color: purple; background-color: green">cell-33</span>
<tr><td><span style="opacity: 50%; font-size: 16pt; color: red">cell-40</span><td>cell-41<td>cell-42<td>cell-43
<tr><td>cell-50<td><span style="opacity: 50%; font-size: 16pt; color: green">cell-51</span><td>cell-52<td>cell-53
<tr><td>cell-60<td>cell-61<td><span style="opacity: 50%; font-size: 16pt; color: yellow">cell-62</span><td>cell-63
<tr><td>cell-70<td>cell-71<td>cell-72<td><span style="opacity: 50%; font-size: 16pt; color: purple">cell-73</span>
<tr><td><span style="opacity: 50%; font-size: 16pt; color: red; background-color: cyan">cell-80</span><td>cell-81<td>cell-82<td>cell-83
<tr><td>cell-90<td><span style="opacity: 50%; font-size: 16pt; color: green; background-color: purple">cell-91</span><td>cell-92<td>cell-93
<tr><td>cell-a0<td>cell-a1<td><span style="opacity: 50%; font-size: 16pt; color: yellow; background-color: blue">cell-a2</span><td>cell-a3
<tr><td>cell-b0<td>cell-b1<td>cell-b2<td><span style="opacity: 50%; font-size: 16pt; color: purple; background-color: green">cell-b3</span>
<tr><td><span style="opacity: 50%; font-size: 16pt; color: red">cell-c0</span><td>cell-c1<td>cell-c2<td>cell-c3
<tr><td>cell-d0<td><span style="opacity: 50%; font-size: 16pt; color: green">cell-d1</span><td>cell-d2<td>cell-d3
<tr><td>cell-e0<td>cell-e1<td><span style="opacity: 50%; font-size: 16pt; color: yellow">cell-e2</span><td>cell-e3
<tr><td>cell-f0<td>cell-f1<td>cell-f2<td><span style="opacity: 50%; font-size: 16pt; color: purple">cell-f3</span>
</tr>
<tr><td>cell-00<td>cell-01<td>cell-02<td>cell-03</tr>
<tr><td>cell-10<td>cell-11<td>cell-12<td>cell-13</tr>
<tr><td>cell-20<td>cell-21<td>cell-22<td>cell-23</tr>
<tr><td>cell-30<td>cell-31<td>cell-32<td>cell-33</tr>
<tr><td>cell-40<td>cell-41<td>cell-42<td>cell-43</tr>
<tr><td>cell-50<td>cell-51<td>cell-52<td>cell-53</tr>
<tr><td>cell-60<td>cell-61<td>cell-62<td>cell-63</tr>
<tr><td>cell-70<td>cell-71<td>cell-72<td>cell-73</tr>
<tr><td>cell-80<td>cell-81<td>cell-82<td>cell-83</tr>
<tr><td>cell-90<td>cell-91<td>cell-92<td>cell-93</tr>
<tr><td>cell-a0<td>cell-a1<td>cell-a2<td>cell-a3</tr>
<tr><td>cell-b0<td>cell-b1<td>cell-b2<td>cell-b3</tr>
<tr><td>cell-c0<td>cell-c1<td>cell-c2<td>cell-c3</tr>
<tr><td>cell-d0<td>cell-d1<td>cell-d2<td>cell-d3</tr>
<tr><td>cell-e0<td>cell-e1<td>cell-e2<td>cell-e3</tr>
<tr><td>cell-f0<td>cell-f1<td>cell-f2<td>cell-f3</tr>
</tbody>
<tfoot>
@ -302,5 +299,37 @@ This is like the previous table plus the list's overflow property set
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<BR>
<P> The following table is similar to a previous table except that the direction is right-to-left.
It will have its 2nd row and 2nd col collapsed. A window resize may be necessary to see it properly.
<BR>
<table dir=rtl cellspacing=0 border=1 style="background-color:orange;">
<caption><b>before</b></caption>
<colgroup>
<col>
<col>
<col>
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13<td>C14
<tr><td>C21<td rowspan=2 colspan=2>C12 C13 C22 C23<td>C14
<tr><td>C31<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
<table dir=rtl cellspacing=0 border=1 style="background-color:orange;">
<caption><b>after</b></caption>
<colgroup>
<col>
<col style="visibility:collapse;">
<col>
<col>
</colgroup>
<tr><td>C11<td>C12<td>C13<td>C14
<tr style="visibility:collapse;"><td>C21<td rowspan=2 colspan=2>C12 C13 C22 C23<td>C14
<tr><td>C31<td>C34
<tr><td>C41<td>C42<td>C43<td>C44
</table>
</BODY>
</HTML>