new regression tests

git-svn-id: svn://10.0.0.236/trunk@41143 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
karnaze%netscape.com 1999-07-26 16:18:49 +00:00
parent 22cdd56db4
commit 9330f3cc8b
8 changed files with 1297 additions and 19 deletions

View File

@ -1,27 +1,24 @@
<table border>
<tr>
<td width=100>100</td>
<td>no width given</td>
<td width=30%>a percent width</td></tr>
<tr>
<td width=500 colspan=3>500 colspan=3</td></tr>
</table>
<BR>
<table border>
<tr>
<td width=100>foo</td>
<td>no width given</td>
<td width=30%>a percent width</td></tr>
<td width=30%>30% width</td></tr>
<tr>
<td width=500 colspan=3>foo</td></tr>
<td width=200 colspan=2>200 spans col 1-2</td><td>last cell</td></tr>
<tr>
<td>first cell</td>
<td width=300 colspan=2>300 spans col 2-3</td></tr>
</table>
<BR>
<table border>
<tr>
<td width=100>foo</td>
<td>no width given</td>
<td width=30%>a percent width</td></tr>
<tr>
<td width=200 colspan=2>spans col 1-2</td><td>last cell</td></tr>
<tr>
<td>first cell</td><td width=300 colspan=2>spans col 2-3</td></tr>
</table>
<BR>
<table width=700 border>
<tr>
<td width=100>fooooo oooooo oooooo oooooo oooooo</td>
@ -29,7 +26,6 @@
</tr>
</table>
<BR>
<TABLE CELLPADDING="3" CELLSPACING="0" border="1" width="400">
<TR>
<TD colspan="2"><P><b>This is colspan=2</b></P></TD>
@ -44,7 +40,6 @@
</TR>
</TABLE>
<BR>
<br>
<TABLE CELLPADDING="3" CELLSPACING="0" border="1" width="400">
<TR>

View File

@ -0,0 +1,494 @@
this fixes a bug
<table width=100 border>
<tr>
<td colspan=3>xxxxxxxxxxxx</td>
<td>y</td></tr>
<tr>
<td>x</td>
<td>x</td>
<td>x</td>
<td>y</td>
</tr>
<tr>
<td>x</td>
<td colspan=3>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</td>
</tr>
</table>
<BR>
<table width=10 border>
<tr>
<td colspan=2>xxxxxxxxxx</td></tr>
<tr>
<td>xx</td>
<td>xx</td></tr>
</table>
<BR>
<table widthx=100 border>
<tr>
<td colspan=3>xxxxxx</td>
<td>y</td></tr>
<tr>
<td>x</td>
<td>x</td>
<td>x</td>
<td>y</td>
</tr>
<tr>
<td>x</td>
<td>x</td>
<td colspan=2>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</td>
</tr>
</table>
<BR>
<table widthx=100 border>
<tr>
<td colspan=3>xxxxxx</td>
<td>y</td></tr>
<tr>
<td>x</td>
<td>x</td>
<td>x</td>
<td>y</td>
</tr>
<tr>
<td>x</td>
<td colspan=3>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</td>
</tr>
</table>
<BR>
<table width=100 border>
<tr>
<td colspan=3>yyyyyyyyyyyyyyyyy</td>
<td>y</td></tr>
<tr>
<td>x</td>
<td>x</td>
<td>x</td>
<td>y</td>
</tr>
<tr>
<td>x</td>
<td colspan=3>yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy</td>
</tr>
</table>
<BR>
<table border>
<tr>
<td colspan=3>xxxxxxxxxxxxxxxxx</td></tr>
<tr>
<td width=100>foo</td>
<td>bar</td>
<td>zap</td>
</tr>
</table>
<BR>
<table width=400 border>
<tr>
<td colspan=3>xxxxxxxxxxxxxxxxx</td></tr>
<tr>
<td width=100>foo</td>
<td>bar</td>
<td>zap</td>
</tr>
</table>
<BR>
<table border>
<tr>
<td colspan=3>xxxxxxxxxxxxxxxxx</td></tr>
<tr>
<td>foo</td>
<td>bar</td>
<td>zap</td>
</tr>
</table>
<BR>
<hr align=left style="width:200;">
<table border>
<tr>
<td width=50>50</td>
<td width=50>50</td>
<td>auto</td></tr>
<tr>
<td colspan=3 width=200>200CS3</td></tr>
</table>
<BR>
<hr align=left style="width:200;">
<table border>
<tr>
<td width=50>50</td>
<td>auto</td></tr>
<tr>
<td colspan=2 width=200>200CS2</td></tr>
</table>
<BR>
<table border>
<tr>
<td width=50>foo</td>
<td width=50>foo</td></tr>
<tr>
<td colspan=2 width=200>foo</td></tr>
</table>
<BR>
<table border>
<tr>
<td colspan=3><img src=raptor.jpg width=600 height=100></td>
<td>foo</td></tr>
<tr>
<td width=100>foo
<td width=100>bar
<td width=400>foo
<td>bar</tr>
</table>
fixed table - spanned cols based on fix widths
<BR>
<hr align=left style="width:400px;">
<table border cellspacing=5>
<tr>
<td colspan=2 width=400>400CS2</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100</td>
<td width=300>300</td>
<td>auto</tr>
</table>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=2>auto auto auto auto auto auto auto</td>
<td width=100>100</td></tr>
<tr>
<td>auto</td>
<td>auto auto</td>
<td>auto</tr>
</table>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=2>auto auto auto auto auto auto auto</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100</td>
<td>auto auto</td>
<td>auto</tr>
</table>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=2>auto auto auto auto auto auto auto</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100</td>
<td>auto auto auto</td>
<td>auto</tr>
</table>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=2>auto auto auto auto auto auto auto</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100</td>
<td>auto auto auto auto auto</td>
<td>auto</tr>
</table>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=2>auto auto auto auto auto auto auto</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100 100 100 100</td>
<td>auto auto auto auto</td>
<td>auto</tr>
</table>
<BR>
<table border width=270 cellspacing=5>
<tr>
<td colspan=2>auto auto auto auto auto auto auto</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100 100 100 100</td>
<td>auto auto auto auto</td>
<td>auto</tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=80%>80% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=100>100</td>
<td>auto</td>
<td>auto</tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=80%>80% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=100>100</td>
<td width=300>300</td>
<td>auto</tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=80%>80% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=33%>33%</td>
<td width=66%>66%</td>
<td>auto</tr>
</table>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=30%>30% 30% 30% 30% 30% 30%</td>
<td>auto</td></tr>
<tr>
<td width=33%>33% 33% 33% 33% 33% 33% 33%</td>
<td width=66%>66%</td>
<td>auto</tr>
</table>
<BR>
PERCENT COLSPANS
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=10%>10%</td>
<td width=66%>66%</td>
<td>auto</tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=33%>33% 33% 33% 33% 33% 33% 33%</td>
<td width=66%>66%</td>
<td>auto</tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=66%>66%</td>
<td width=66%>66% 66% 66% 66% 66% 66% </td>
<td>auto</tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=3 width=90%>90% 90% 90% </td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% </td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td colspan=2 width=90%>90% 90% 90% </td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% </td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td>
<td width=60%>60%</td></tr>
<tr>
<td>auto</td>
<td colspan=2 width=90%>90% 90% 90% </td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% </td>
<td width=60%>60%</td></tr>
<tr>
<td>auto</td>
<td>auto</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td colspan=2 width=90%>90% 90% 90% </td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td width=66%>66%</td>
<td width=66%>66% 66% 66% 66% 66% 66% </td>
<td width=50%>50%</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 80% 80% 80% 80% 80%</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto auto</td>
<td width=50%>50%</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% 90% 90% 90%</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td width=50%>50%</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% 90% 90% 90%</td>
<td>auto</td></tr>
<tr>
<td width=60%>60%</td>
<td>auto-auto</td>
<td width=50%>50%</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% 90% 90% 90%</td>
<td>auto</td></tr>
<tr>
<td width=5%>5% 5% 5%</td>
<td>auto-auto</td>
<td width=50%>50%</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% 90% 90% 90%</td>
<td>auto</td></tr>
<tr>
<td width=5%>5%</td>
<td width=10%>10%</td>
<td>auto</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 90% 90% 90% 90% 90%</td>
<td>auto</td></tr>
<tr>
<td width=10>10</td>
<td width=20>20</td>
<td>auto</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=50%>50% 50% 50% 50% 50%</td>
<td>auto</td></tr>
<tr>
<td width=80%>80%</td>
<td>auto auto</td>
<td width=50%>50%</td></tr>
</table>
<BR>
<table width=500 border cellspacing=5>
<tr>
<td colspan=2 width=90%>90% 50% 50% 50% 50%</td>
<td>auto</td></tr>
<tr>
<td width=100>100</td>
<td>auto auto auto</td>
<td>auto</td></tr>
</table>
<BR>
<BR>
<hr align=left style="width:600px;">
<table border cellspacing=5>
<tr>
<td colspan=3><img src=raptor.jpg width=600 height=100></td>
<td>foo</td></tr>
<tr>
<td width=100>foo
<td width=100>bar
<td>foo
<td>bar</tr>
</table>
<BR>
1st cell with colspan=3 fixed at 600, 1st 2 cells in 2nd row fixed at 100, 2nd not
<table border>
<tr>
<td width=600 colspan=3>foo</td>
<td>foo</td></tr>
<tr>
<td width=100>foo
<td width=100>bar
<td>foo
<td>bar</tr>
</table>
<BR>
<table cellspacing=0 cellpadding=0 border>
<col style="background-color:red">
<col style="background-color:blue">
<tr>
<td colspan=2>foo</td></tr>
</table>
<BR>
<table border>
<tr>
<td colspan=3>foo<td>bar</tr>
<tr>
<td colspan=2>foo<td>bar</tr>
</table>
<BR>
<table border=1 cellpadding=4 cellspacing=0 width="100%" >
<tr bgcolor="#ccccff">
<td align=right colspan=3>edit</td></tr>
<tr>
<td bgcolor="#dcdcdc" colspan=2 nowrap>Top Stories from Reuters&nbsp;</td>
<td bgcolor="#dcdcdc" align=right>Jun 11 12:30pm&nbsp;</td></tr>
</table>
<BR>
<table bgcolor=yellow border width=200>
<tr>
<td>foo</td>
<td>
<table widthx=100 bgcolor=orange>
<tr>
<td>bar</td></tr>
</table></td></tr>
</table>
</body>
</html>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=3>auto</td>
<td>auto</td></tr>
</table>

View File

@ -0,0 +1,398 @@
fixed table - fixed cells are increased based on fixed width
<table width=400 border>
<tr>
<td width=200>foo</td>
<td width=100>foo foo foo foo foo foo foo foo</td></tr>
</table>
<BR>
fixed table - percentage width cell is honored to min
<table width=300 border>
<tr>
<td width=3%>foo</td>
<td width=3%>foo</td></tr>
</table>
<BR>
fixed table - percentage width cell honored to min
<table width=300 border>
<tr>
<td width=3%>foo</td>
<td width=100>foo</td></tr>
</table>
<BR>
fixed table - 0 percentage width cell is not honored to min
<table width=300 border>
<tr>
<td width=0%>foo</td>
<td>foo</td></tr>
</table>
<BR>
fixed table - too small a percentage width cell is honored to min
<table width=300 border>
<tr>
<td width=2%>foo</td>
<td>foo</td></tr>
</table>
<BR>
fixed table - too small a percentage width col is honored to min
<table width=300 border>
<col width=2%>
<tr>
<td>foo</td>
<td>foo</td></tr>
</table>
<BR>
percentage cols allocated left to right like IE 5
<table width=300 border>
<col width=50%>
<col width=50%>
<col width=50%>
<tr>
<td>foo</td>
<td>foo</td>
<td>foo</td></tr>
</table>
<BR>
excess above min allocated based on fixed widths (not min)
<table width=100 border>
<tr>
<td width=100>foo foo</td>
<td width=300>foo</td></tr>
</table>
<BR>
excess above min allocated based on fixed widths (not min)
<table width=100 border>
<tr>
<td width=10>foo foo</td>
<td width=300>foo</td></tr>
</table>
<BR>
auto table - fixed width cell does not exceed viewport
<table border>
<tr>
<td width=1000>foo</td></tr>
</table>
<BR>
auto table - fixed cells cannot exceed viewport
<table border>
<tr>
<td width=200>200px</td>
<td width=200>200px</td>
<td width=200>200px</td>
<td width=200>200px</td>
<td width=200>200px</td>
</tr>
</table>
<BR>
auto table - cell width does not include padding
<table border cellpadding=20>
<tr>
<td width=100>cell=100px</td></tr>
</table>
<table border>
<tr>
<td width=100>cell=100px</td></tr>
</table>
fixed table - percentage cell width includes padding
<table border width=300 cellpadding=20>
<tr>
<td width=50%>cell=50%</td>
<td>cell=auto</td></tr>
</table>
<table border width=300>
<tr>
<td width=50%>cell=50%</td>
<td>cell=auto</td></tr>
</table>
table with no cells doesn't show up BEFORE
<table border width=100>
<tr></tr></table>
after
<BR>
auto table - % width single cell has no effect (not so in IE5)
<table cellspacing=10 border>
<tr>
<td width=10%>10% 10%</td></tr>
</table>
<BR>
auto table - % width cell increases table width based on % cell
<table cellspacing=10 cellpadding=10 border>
<tr>
<td width=10%>10% 10%</td>
<td>auto</td></tr>
</table>
<BR>
auto table - % width cell increases table width based on % cell
<table cellspacing=10 border>
<tr>
<td width=10%>10%</td>
<td>auto</td></tr>
</table>
<BR>
auto table - % width cell increases table width based on % cell which makes it largest
<table cellspacing=10 border>
<tr>
<td width=10%>10%</td>
<td width=1%>1%</td>
<td>auto</td></tr>
</table>
<BR>
auto table - % width cell increases table width based on % cell which makes it largest
<table cellspacing=10 border>
<tr>
<td width=1%>1%</td>
<td width=10%>10%</td>
<td width=20>20px</td></tr>
</table>
<BR>
auto table - % width cell increases table width based on % cell which makes it largest.
Nav4.x does not increase the table too much if the only cells are %
<table cellspacing=10 border>
<tr>
<td width=1%>1%</td>
<td width=10%>10%</td></tr>
</table>
<BR>
auto table - % width col increases table width based on % col
<table cellspacing=10 cellpadding=10 border>
<col width=10%>
<tr>
<td>10pCol</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - % width col allocated before fixed
<table cellspacing=10 cellpadding=10 width=300 border>
<col width=50%>
<tr>
<td>50%Col</td>
<td width=20>20px</td></tr>
</table>
<BR>
auto table - % width col increases table width based on % col
<table cellspacing=10 cellpadding=10 border>
<col width=10%>
<tr>
<td>10%Col</td>
<td width=20>20px</td></tr>
</table>
<BR>
<BR>
fixed table - percentage cells allocated left to rigth first
<table width=300 border>
<tr>
<td width=100>100px 100px</td>
<td width=50%>50%</td>
<td width=50%>50%</td></tr>
</table>
<BR>
fixed table - percentage cells allocated left to rigth first
allocated from left to right
<table width=300 border>
<tr>
<td width=100>100px 100px</td>
<td width=95%>95%</td>
<td width=95%>95%</td></tr>
</table>
<BR>
fixed table - percentage cells allocated left to rigth first
<table width=200 cellspacing=10 cellpaddingx=5 border>
<tr>
<td width=100>100px 100px</td>
<td width=50%>50%</td></tr>
</table>
<BR>
fixed table - percentage cells allocated left to right first
<table width=200 cellspacing=10 border>
<tr>
<td width=100>100px 100px</td>
<td width=50%>50% 50% 50%</td>
<td width=50%>50% 50% 50%</td></tr>
</table>
<BR>
fixed table - percentage cells allocated left to right first
<table width=400 cellspacing=10 border>
<tr>
<td width=100>100px 100px</td>
<td width=100>100px 100px</td>
<td width=50%>50% 50% 50%</td>
<td width=50%>50% 50% 50%</td></tr>
</table>
<BR>
fixed table - percentage cells allocated left to right first
<table width=400 cellspacing=10 border>
<tr>
<td width=100>100px 100px</td>
<td width=100>100px 100px</td>
<td width=50%>50% 50% 50%</td>
<td width=50%>50% 50% 50%</td>
<td width=50%>50% 50% 50%</td></tr>
</table>
<BR>
fixed table - % cols/cells allocated left to right
<table width=400 cellspacing=10 border>
<col width=90%>
<tr>
<td>90%Col</td>
<td width=90%>90%Cell</td>
<td width=90%>90%Cell</td></tr>
</table>
<hr align=left style="width:100px;">
<BR>
fixed table - fixed cells get expanded in Quirks mode, not in Standard
<table width=200 border>
<tr>
<td width=100>100px 100px 100px</td>
<td>auto auto</td></tr>
</table>
<BR>
fixed table - % cells don't get expanded
<table width=200 border>
<tr>
<td width=25%>25%</td>
<td width=25%>25%</td>
<td>auto</td></tr>
</table>
<BR>
auto table - fixed cells honored
<table border>
<tr>
<td width=100>100px 100px</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - % cells are honored
<table width=200 border>
<tr>
<td width=50%>50% 50% 50%</td>
<td>auto</td></tr>
</table>
<table border>
<tr>
<td width=100>foo</td>
<td width=10%>bar</td>
<td width=10%>zap</td>
</tr>
</table>
<BR>
<table width=200 border>
<tr>
<td width=100>foo</td>
<td width=50%>bar</td>
<td width=50%>zap</td>
</tr>
</table>
<BR>
<table cellpadding=30 border>
<tr>
<td width=100>foo</td></tr>
</table>
<BR>
<table width=600 border>
<tr>
<td width=5>foo</td>
<td>foo</td></tr>
</table>
<BR>
<hr align=left style="width:100px;">
table fixed at 600, 1st 2 cells fixed at 100, 2nd not
<table width=600 border>
<tr>
<td width=100>foo
<td width=100>bar
<td>foo</td></tr>
</table>
<BR>
col width=200, td width=100
<table border>
<col style="width: 200;">
<tr>
<td width=100>foo</td></tr>
</table>
<BR>
col width=100, td width=200
<table border>
<col style="width: 100;">
<tr>
<td width=200>foo</td></tr>
</table>
<BR>
col width=200
<table border>
<col style="width: 200;">
<tr>
<td>foo</td></tr>
</table>
<BR>
<table border>
<col style="width: 100;">
<tr>
<td width=200>foo</td></tr>
</table>
<BR>
<table width=40 border>
<tr>
<td width=200>foo</td></tr>
</table>
<BR>
<table border>
<tr>
<td colspan=3><img src=raptor.jpg width=600 height=100></td>
<td>foo</td></tr>
<tr>
<td width=10>foo
<td width=10>bar
<td>foo
<td>bar</tr>
</table>
<BR>
<table border cellspacing=5>
<tr>
<td colspan=2>auto</td>
<td width=100>100</td></tr>
<tr>
<td width=100>100</td>
<td width=300>300</td>
<td>auto</tr>
</table>
<BR>
table fixed at 600, 1st 2 cells fixed at 100, 2nd not
<table width=600 border>
<tr>
<td width=100>foo
<td width=100>bar
<td>foo</td></tr>
</table>
<BR>
table fixed at 600, 1st 2 cells fixed at 50, 2nd not
<table width=600 border>
<tr>
<td width=50>foo
<td width=50>bar
<td>foo</td></tr>
</table>
<BR>
table fixed at 600, 1st 2 cells fixed at 1000, 2nd not
<table width=600 border>
<tr>
<td width=1000>foo
<td width=1000>bar
<td>foo</td></tr>
</table>
<BR>
table fixed at 600, 1st 2 cells fixed at 5, 2nd not
<table width=600 border>
<tr>
<td width=5>foo
<td width=5>bar
<td>foo</td></tr>
</table>
<BR>

View File

@ -0,0 +1,120 @@
auto table cols=2
<table border cols=2>
<tr>
<td>auto auto auto auto auto auto auto auto </td>
<td>auto-auto auto auto auto </td>
<td>auto auto auto</td></tr>
</table>
<BR>
auto table cols=2
<table border cols=2>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
auto table 2 cols with 1*,1*
<table border>
<col width=1*>
<col width=1*>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
auto table 2 cols with 2*,1*
<table border>
<col width=2*>
<col width=1*>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
fixed table cols=2
<table width=400 border cols=2>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
auto table cols=3
<table border cols=3>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
fixed table cols=3
<table width=400 border cols=3>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
auto table cols=3
<table border cols=3>
<tr>
<td width=200>200</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
fixed table cols=3
<table width=400 border cols=3>
<tr>
<td width=200>200</td>
<td>auto-auto</td>
<td>auto auto auto</td></tr>
</table>
<BR>
auto table cols=2
<table border cols=2>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td width=200>200</td></tr>
</table>
<BR>
fixed table cols=2
<table width=400 border cols=2>
<tr>
<td>auto</td>
<td>auto-auto</td>
<td width=200>200</td></tr>
</table>
auto table
<table border>
<tr>
<td width=0>0 0 0 0</td>
<td>auto</td></td></tr>
</table>
<BR>
auto table
<table border>
<tr>
<td width=0%>0% 0% 0% 0%</td>
<td>auto</td></td></tr>
</table>
<BR>
auto table
<table border>
<col width=0*>
<tr>
<td>0* col</td>
<td>auto</td></td></tr>
</table>
<BR>
fixed table
<table width=200 border>
<col width=0*>
<tr>
<td>0* col</td>
<td>auto</td></td></tr>
</table>

View File

@ -0,0 +1,151 @@
fixed table - width on td overriden
<table border=10 cellspacing=3 cellpadding=5 width=400 border>
<tr>
<td width=100%>foo</td>
<td width=100>foo</td></tr>
</table>
<hr align=left style="width:400px; alignx:left">
<BR>
fixed table - percent cell wins over fix cell (and in IE5)
<table width=500 border>
<tr>
<td width=20>20px</td>
<td>auto</td></tr>
<tr>
<td width=50%>50%</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - percent cell wins over fix cell (and in IE5)
<table width=300 border>
<tr>
<td width=100>100</td>
<td>auto</td></tr>
<tr>
<td width=10%>10%</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - percent cell wins over fix cell (and in IE5)
<table width=500 border>
<col width=50%>
<tr>
<td width=20%>50%Col,20%Cell</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - percent cell wins over fix cell (and in IE5)
<table width=500 border>
<col width=20%>
<tr>
<td width=50%>20%Col,50%Cell</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - percent cell wins over fix cell (and in IE5)
<table width=500 border>
<col width=50%>
<tr>
<td width=100>50PerCol,100Cell</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - percent cell wins over fix cell (and in IE5)
<table width=500 border>
<col width=20%>
<tr>
<td width=300>20PerCol,300Cell</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - % wins over fixed even on colspan
<table width=300 border>
<tr>
<td width=50 colspan=2>50CS2</td>
<td>auto</td></tr>
<tr>
<td width=50% colspan=2>50%CS2</td>
<td>auto</td></tr>
</table>
<BR>
fixed table - % wins over fixed even on colspan
<table width=300 border>
<tr>
<td width=200 colspan=2>100CS2</td>
<td>bar</td></tr>
<tr>
<td width=30% colspan=2>30%CS2</td>
<td>bar</td></tr>
</table>
<BR>
auto table - percent colspan wins over fixed colspan XXX
<table border>
<tr>
<td width=500 colspan=2>500CS2</td>
<td>atuo</td></tr>
<tr>
<td width=10% colspan=2>10%CS2</td>
<td>auto</td></tr>
</table>
<BR>
auto table - percent colspan wins over fixed colspan
<table border>
<tr>
<td width=500 colspan=2>500CS2</td>
<td>auto</td></tr>
<tr>
<td width=20% colspan=2>20%CS2</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
auto table - percent colspan wins over fixed colspan
<table border>
<tr>
<td width=200 colspan=2>200CS2</td>
<td>auto</td></tr>
<tr>
<td width=20% colspan=2>20%CS2</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
auto table - percent colspan wins over fixed colspan
<table border>
<tr>
<td width=1000 colspan=2>1000CS2</td>
<td>auto</td></tr>
<tr>
<td width=20% colspan=2>20%CS2</td>
<td>auto</td></tr>
<tr>
<td>auto</td>
<td>auto</td>
<td>auto</td></tr>
</table>
<BR>
percent cell/col percentage conflict goes to cell (and in IE5)
<table width=500 border cellspacing=5>
<col width=80%>
<tr>
<td width=30%>30%-80%col</td>
<td>auto</td></tr>
</table>

View File

@ -2,3 +2,10 @@ file://s:/mozilla/layout/html/tests/table/core/backgrounds.html
file://s:/mozilla/layout/html/tests/table/core/one_row.html
file://s:/mozilla/layout/html/tests/table/core/col_span.html
file://s:/mozilla/layout/html/tests/table/core/col_widths.html
file://s:/mozilla/layout/html/tests/table/core/conflicts.html
file://s:/mozilla/layout/html/tests/table/core/columns.html
file://s:/mozilla/layout/html/tests/table/core/col_widths2.html
file://s:/mozilla/layout/html/tests/table/core/misc.html
file://s:/mozilla/layout/html/tests/table/core/row_span.html
file://s:/mozilla/layout/html/tests/table/core/col_span2.html

View File

@ -0,0 +1,26 @@
cell split with color (standard mode)
<table border>
<col style="background-color:red;">
<col style="background-color:blue;">
<tr>
<td colspan=2>foo</td></tr>
</table>
<BR>
<hr align=left width=600>
<TABLE WIDTH=600>
<TR>
<TD COLSPAN=3 ALIGN=CENTER>
<IMG SRC="http://home.netscape.com/images/ns_netcenter_bar_new.gif" WIDTH=579 widthx=600
HEIGHT=42 BORDER=0</TD>
</TR>
<TR>
<TD WIDTH=230>
<IMG SRC="../images/raptor.jpg" ALT="[Click Here]" WIDTH=230
HEIGHT=33 BORDER=1></TD>
<TD ALIGN=CENTER WIDTH=135>Hassle-Free Upgrades</TD>
</TR>
<TR><TD COLSPAN=4 BGCOLOR="#99cccc">x</td></tr>
</form>
<BR>

View File

@ -0,0 +1,87 @@
ROWSPANS
<table border=5>
<tr>
<td rowspan=2>auto1</td>
<td >auto2</td>
</tr>
<tr>
<td >auto3</td>
<td >auto4</td>
</tr>
</table>
<table border>
<tr>
<td rowspan=3 background=bg.jpg>c0r[2-6],Data 2 span=3 rows</td>
<td >c0r2</td>
<td >c1r2</td>
</tr>
<tr>
<td >c0r3</td>
<td >c1r3</td>
</tr>
<tr>
<td >c0r4</td>
<td >c1r4</td>
</tr>
</table>
<tr>
<td rowspan=5 background=bg.jpg>c0r[2-6],Data 2 span=5 rows</td>
<td >c0r2</td>
<td >c1r2</td>
</tr>
<tr>
<td >c0r3</td>
<td >c1r3</td>
</tr>
<tr>
<td >c0r4</td>
<td >c1r4</td>
</tr>
<tr>
<td >c0r5</td>
<td >c1r5</td>
</tr>
<tr>
<td >c0r6</td>
<td >c1r6</td>
</tr>
<tr>
<td rowspan=3 >c0r[7-9] span=3 rows</td>
<td >c0r7</td>
<td >c1r7</td>
</tr>
<tr>
<td >c0r8</td>
<td >c1r8</td>
</tr>
<tr>
<td >c0r9</td>
<td >c1r9</td>
</tr>
</table>
<BR>
<table border>
<tr>
<td>one</td>
<td rowspan=2>two</td></tr>
<tr>
<td align=center colspan=2>three</td></tr>
</table>
<table border>
<tr>
<td rowspan=2>foo</td></tr>
<tr>
<td rowspan=2>bar</td></tr>
</table>
<BR>
<TABLE CELLPADDING=0 CELLSPACING=0 WIDTH=602 BORDER=1>
<TR>
<TD COLSPAN="2" ROWSPAN=2 VALIGN=TOP BGCOLOR="#FFFFFF">
<IMG src="http://register.microsoft.com/library/images/gifs/regwiz/wiz438sidebar.gif" ALT="" BORDER=0></TD></TR>
<TR>
<TD COLSPAN=6 HEIGHT="45" ALIGN=RIGHT>xxx</TD></TR>
</TABLE>