gecko/layout/html/tests/table/bugs/bug2773.html

66 lines
1.4 KiB
HTML

<HTML><HEAD></HEAD>
<BODY>
<p><b>(1) Colspanning TD has fixed width equal to table width</b></p>
<TABLE BORDER=1 BGCOLOR=#ffffcc WIDTH=340 cellpadding=0 cellspacing=0>
<TR>
<TD WIDTH=340 COLSPAN=2>width=340 (same as table)</TD>
</TR>
<TR>
<TD>Search for:</TD>
<TD>foo bar baz foo bar baz foo bar baz</TD>
</TR>
</TABLE>
<p><b>(2) Colspanning TD has auto width</b></p>
<TABLE BORDER=1 BGCOLOR=#ffffcc WIDTH=340 cellpadding=0 cellspacing=0>
<TR>
<TD COLSPAN=2>no width attribute</TD>
</TR>
<TR>
<TD>Search for:</TD>
<TD>foo bar baz foo bar baz foo bar baz</TD>
</TR>
</TABLE>
<p><b>(3) Colspanning TD has width=100px</b></p>
<TABLE BORDER=1 BGCOLOR=#ffffcc WIDTH=340 cellpadding=0 cellspacing=0>
<TR>
<TD WIDTH=100 COLSPAN=2>width=100px</TD>
</TR>
<TR>
<TD>Search for:</TD>
<TD>foo bar baz foo bar baz foo bar baz</TD>
</TR>
</TABLE>
<p><b>(4) Colspanning TD has width=200px</b></p>
<TABLE BORDER=1 BGCOLOR=#ffffcc WIDTH=340 cellpadding=0 cellspacing=0>
<TR>
<TD WIDTH=200 COLSPAN=2>width=200px</TD>
</TR>
<TR>
<TD>Search for:</TD>
<TD>foo bar baz foo bar baz foo bar baz</TD>
</TR>
</TABLE>
<p><b>(5) Colspanning TD has width=100%</b></p>
<TABLE BORDER=1 BGCOLOR=#ffffcc WIDTH=340 cellpadding=0 cellspacing=0>
<TR>
<TD WIDTH=100% COLSPAN=2>width=100%</TD>
</TR>
<TR>
<TD>Search for:</TD>
<TD>foo bar baz foo bar baz foo bar baz</TD>
</TR>
</TABLE>
</center>
</BODY></HTML>