new regression tests, not affecting the build.

This commit is contained in:
karnaze%netscape.com 2000-05-02 01:10:51 +00:00
Родитель 8eb6e87597
Коммит f465e52ad1
10 изменённых файлов: 691 добавлений и 0 удалений

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

@ -0,0 +1,241 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<!-- Work done for Netscape. License unknown. -->
<html lang="en-US">
<head>
<title>Tables and captions</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="copyright" href="/~dbaron/legal.html">
<style type="text/css">
table { border: 10px solid green; }
caption {
border: medium solid purple;
caption-side: top;
}
table.one { width: 300px; }
table.one caption { width: 300px; }
table.two { width: 300px; }
table.two caption { width: 600px; }
table.three { width: 600px; }
table.three caption { width: 300px; }
table.four { margin-top: 20px; }
table.four caption { margin-bottom: 0; }
table.five { margin-top: 0; }
table.five caption { margin-bottom: 20px; }
table.six { margin-top: 15px; }
table.six caption { margin-bottom: 20px; }
table.seven { margin-top: 20px; }
table.seven caption { margin-bottom: 15px; }
table.eight { margin-right: 20px; }
table.eight caption { margin-left: 0; caption-side: right; }
table.nine { margin-right: 0; }
table.nine caption { margin-left: 20px; caption-side: right; }
table.ten { margin-right: 15px; }
table.ten caption { margin-left: 20px; caption-side: right; }
table.eleven { margin-right: 20px; }
table.eleven caption { margin-left: 15px; caption-side: right; }
table.twelve { margin-bottom: 20px; }
table.twelve caption { margin-top: 0; caption-side: bottom; }
table.thirteen { margin-bottom: 0; }
table.thirteen caption { margin-top: 20px; caption-side: bottom; }
table.fourteen { margin-bottom: 15px; }
table.fourteen caption { margin-top: 20px; caption-side: bottom; }
table.fifteen { margin-bottom: 20px; }
table.fifteen caption { margin-top: 15px; caption-side: bottom; }
table.sixteen { margin-left: 20px; }
table.sixteen caption { margin-right: 0; caption-side: left; }
table.seventeen { margin-left: 0; }
table.seventeen caption { margin-right: 20px; caption-side: left; }
table.eighteen { margin-left: 15px; }
table.eighteen caption { margin-right: 20px; caption-side: left; }
table.nineteen { margin-left: 20px; }
table.nineteen caption { margin-right: 15px; caption-side: left; }
</style>
</head>
<body>
<h1>Tables and captions</h1>
<p>
The table should have width 300px, as should the caption (entirely
above the table):
</p>
<table class="one">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<p>
The table should have width 300px, and the caption should have
width 600px.
</p>
<table class="two">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<p>
The table should have width 600px, and the caption should have
width 300px.
</p>
<table class="three">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<p>
The next four tables should have their caption on the top,
with a 20px gap between the table and the caption.
</p>
<table class="four">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="five">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="six">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="seven">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<p>
The next four tables should have their caption on the right,
with a 20px gap between the table and the caption.
</p>
<table class="eight">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="nine">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="ten">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="eleven">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<p>
The next four tables should have their caption on the bottom,
with a 20px gap between the table and the caption.
</p>
<table class="twelve">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="thirteen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="fourteen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="fifteen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<p>
The next four tables should have their caption on the left,
with a 20px gap between the table and the caption.
</p>
<table class="sixteen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="seventeen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="eighteen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<table class="nineteen">
<caption>The table's caption.</caption>
<tr><td>Data</td><td>Data</td></tr>
<tr><td>Data</td><td>Data</td></tr>
</table>
<hr title="Beginning of Footer">
<p><a href="http://validator.w3.org/check/referer" title="W3C HTML Validator"><img src="../../images/vh40" alt="Valid HTML 4.0!" height="31" width="88"></a></p>
<p>(Back to
<a href="./">CSS Testing Information</a>,
<a href="../../">David Baron</a>)</p>
<p><a href="/~dbaron/" title="David Baron's Homepage">LDB</a>,
<a rev="made" href="mailto:dbaron@fas.harvard.edu" TITLE="Send e-mail to David Baron">dbaron@fas.harvard.edu</a></p>
</body></html>

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

@ -0,0 +1,27 @@
<html><head><title>Testcase for bug 13118</title></head><body bgcolor="white">
<H4>TBODY is not correctly positioned when TFOOT is present but THEAD is not:</H4>
<TABLE BORDER="1">
<TFOOT><TR><TD>TFOOT</TD></TR></TFOOT>
<TBODY><TR><TD>TBODY</TD></TR></TBODY>
</TABLE>
<BR>
<TABLE BORDER="1">
<THEAD><TR><TH>THEAD</TH></TR></THEAD>
<TFOOT><TR><TD>TFOOT</TD></TR></TFOOT>
<TBODY><TR><TD>TBODY</TD></TR></TBODY>
</TABLE>
<P>Same as above but with <code>CELLSPACING="10"</code>:
<TABLE BORDER="1" CELLSPACING="10">
<TFOOT><TR><TD>TFOOT</TD></TR></TFOOT>
<TBODY><TR><TD>TBODY</TD></TR></TBODY>
</TABLE>
<BR>
<TABLE BORDER="1" CELLSPACING="10">
<THEAD><TR><TH>THEAD</TH></TR></THEAD>
<TFOOT><TR><TD>TFOOT</TD></TR></TFOOT>
<TBODY><TR><TD>TBODY</TD></TR></TBODY>
</TABLE>
</body></html>

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

@ -0,0 +1,79 @@
<html><head>
<style type="text/css">
tbody.scroll1 {overflow: auto;height: 80px;}
tbody.scroll2 {overflow: auto;height: 80px;width: 50px;}
table scroll2 {width: 50px;}
</style></head>
<body>
<table border=0 cellpadding=0 cellspacing=0><tr valign=top><td>
<table border=0 cellpadding=0 cellspacing=0>
<thead><tr><th>Header 1/1</th></tr></thead>
<tbody class=scroll1><tr><td>
1 2 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
</td></tr></tbody>
</table>
</td><td>
<table border=0 cellpadding=0 cellspacing=0>
<thead><tr><th>Header 2/1</th></tr></thead>
<tbody class=scroll1><tr><td>
1 2 3 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
</td></tr></tbody>
</table>
</td><td>
<table border=0 cellpadding=0 cellspacing=0>
<thead><tr><th>Header 3/1</th></tr></thead>
<tbody class=scroll1><tr><td>
1 2 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
</td></tr></tbody>
</table>
<td></tr><tr><td>
<table class=scroll2 border=0 cellpadding=0 cellspacing=0>
<thead><tr><th>Header 1/2</th></tr></thead>
<tbody class=scroll2><tr><td>
1 2 3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
</td></tr></tbody>
</table>
</td><td>
<table class=scroll2 border=0 cellpadding=0 cellspacing=0>
<thead><tr><th>Header 2/2</th></tr></thead>
<tbody class=scroll2><tr><td>
1 2 3 # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
</td></tr></tbody>
</table>
</td><td>
<table class=scroll2 border=0 cellpadding=0 cellspacing=0>
<thead><tr><th>Header 3/2</th></tr></thead>
<tbody class=scroll2><tr><td>
1 2 3 ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
</td></tr></tbody>
</table>
</td></tr></table>
</body></html>

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

@ -0,0 +1,123 @@
<html><head><title>Bug example 2</title>
<style type="text/css">
tr {vertical-align: top;}
td {width: 80px;font-size: 12pt;text-align: left;background-color: #404080;color: white;}
td.d {color: yellow;width: auto;font-size: 16pt;font-weight: 600}
tbody.a {background-color:yellow;height: 80px;overflow: auto;}
table {border-spacing: 0px;}
</style></head>
<body>
<center>Build 1999/10/27/08 Win95 - Daily Build<br><table border=10>
<caption>January 2000</caption>
<tr>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td><table><tr><td class=d>1.</td><td><table><tbody class=a><tr><td>
<p>Test mozilla one last time.
<p>New Years day.
<p>Y2K!!!
<p>Find Abacus from attic
<p>Eat Ice Cream before it melts
<p>Lock doors & hide
</td></tr></tbody></table></td></tr></table><br></td>
</tr><tr>
<td><table><tr><td class=d>2.</td><td><table><tbody class=a><tr><td>
<p>Look for Y2K survivers.
<p>Build outhouse
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table><br></td>
<td><table><tr><td class=d>3.</td><td><table><tbody class=a><tr><td>
<p>Write letter to electric company
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>4.</td><td><table><tbody class=a><tr><td>
<p>Send the snail mail
<p>Go to work and stare at dead monitor
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>5.</td><td><table><tbody class=a><tr><td>
<p>Go to work and stare at dead monitor
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>6.</td><td><table><tbody class=a><tr><td>
<p>Go to work and stare at dead monitor
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>7.</td><td><table><tbody class=a><tr><td>
<p>Go internet exploring for food.
<p>Internet exploring doesn't work.
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>8.</td><td><table><tbody class=a><tr><td>
<p>Go internet exploring for food again.
<p>Internet exploring doesn't work again.
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table></td>
</tr><tr>
<td><table><tr><td class=d>9.</td><td><table><tbody class=a><tr><td>
<p>Go internet exploring for food.
<p>Internet exploring still doesn't work.
<p>Give up internet exploring for food.
<p>Eat reserve food
</td></tr></tbody></table></td></tr></table><br></td>
<td><table><tr><td class=d>10.</td><td><table><tbody class=a><tr><td>
<p>Power comes back on.
<p>Put trusty abacus back in attic
<p>Grab latest mozilla
<p>Test it
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>11.</td><td><table><tbody class=a><tr><td>
<p>Grab latest mozilla
<p>Test it
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>12.</td><td><table><tbody class=a><tr><td>
<p>Grab latest mozilla
<p>Test it
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>13.</td><td><table><tbody class=a><tr><td>
<p>Grab latest mozilla
<p>Test it
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>14.</td><td><table><tbody class=a><tr><td>
<p>Grab latest mozilla
<p>Test it
</td></tr></tbody></table></td></tr></table></td>
<td><table><tr><td class=d>15.</td><td><table><tbody class=a><tr><td>
<p>Grab latest mozilla
<p>Test it
<p>Mozilla removes Y2K Warning from FTP site
<p>This bug is fixed
</td></tr></tbody></table></td></tr></table></td>
</tr><tr>
<td><table><tr><td class=d>16.</td><td><table><tbody class=a><tr><td>
?
</td></tr></tbody></table></td></tr></table></td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr><tr>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
<td>-</td>
</tr>
</table><br>
Notice the scrollbars,
they are rendered outside of the table columns, and the yellow day numbers are hidden under them.
<p>This is probably another bug already covered, or fixed, but
day 3 & 16 should have no scrollbar, but the area where the other scrollbars are drawn is drawn funny.
They are not rendered. They seem to be whatever was drawn there before, or drawn somewhere else.
Day 16 (contaings only the letter "?") has a region below the ? mark that is never rendered.
Resize the window so the window can scroll down and scroll the page up & down.</center>
</body></html>

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

@ -0,0 +1 @@
<html><body><table border height=100%><tr><td><table border height=50%><tr><Td>x</td></tr></table></td></tr></table>

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

@ -0,0 +1,71 @@
<html><head>
<style>
table {
width: 600px;
border: 1px solid red;
empty-cells: show;
}
td {
border: 1px solid green;
}
table.inner {margin: 20px; width: 600px;}
</style><head>
<body>
<pre>These tables below all have the HTML + CSS ...
&lt;TABLE>&lt;tr> table {
&lt;td>&lt;TABLE style='margin: 20px; padding: 19px;'> width: 600px;
&lt;tr>&lt;td>&lt;/td>&lt;/tr> border: 1px solid red;
&lt;/TABLE>&lt;/td> empty-cells: show;}
&lt;/tr>&lt;/TABLE> td {
border: 1px solid green;}
table.inner {margin: 20px;}
... and differ only in the value of 'padding:'. From top table to
bottom: 0px, 10px, 19px, 20px, 25px. Note that for a <u><i>table over-constrained
within another table</i></u>, <i><u>when (padding >=margin)</u></i>, the margin is <i><u>all allocated
to the right hand side</u></i> of the table (and to the left if 'direction: rtl;'.</pre>
<TABLE style='width: 600px; border: 1px dotted blue;'><tr>
<td>600px table for width comparison</td>
</tr></TABLE>
<TABLE><tr>
<td><TABLE class='inner' style='padding: 0px;'>
<tr><td></td></tr>
</TABLE></td>
</tr></TABLE>
<TABLE><tr>
<td><TABLE class='inner' style='padding: 10px;'>
<tr><td></td></tr>
</TABLE></td>
</tr></TABLE>
<TABLE><tr>
<td><TABLE class='inner' style='padding: 19px;'>
<tr><td></td></tr>
</TABLE></td>
</tr></TABLE>
<TABLE><tr>
<td><TABLE class='inner' style='padding: 20px;'>
<tr><td></td></tr>
</TABLE></td>
</tr></TABLE>
<TABLE><tr>
<td><TABLE class='inner' style='padding: 25px;'>
<tr><td></td></tr>
</TABLE></td>
</tr></TABLE>
</body>
</html>

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

@ -0,0 +1,56 @@
<html>
<head>
<title>Test Case: text in cell appears to left of left margin created by cellpadding</title>
<style>
.someClass { font-weight: bold; }
</style>
</head>
<body>
<p>this table is regular html and the cell has a class attribute:</p>
<table id="test" border="2" cellpadding="25">
<tr>
<td class="someClass">padding?</td>
</tr>
<tr>
</tr>
</table>
<p>this table is partly created by javascript code and the cell has a class attribute. this is where the text appears to the left of the left margin created by the cellpadding:</p>
<table id="test2" border="2" cellpadding="25">
<tr>
</tr>
</table>
<p>this table is partly created by javascript code and the cell has no class attribute. here the text obeys the cellpadding value, although there is another problem with this table that i'm filing under a separate bug report:</p>
<table id="test3" border="2" cellpadding="25">
<tr>
</tr>
</table>
<script type="text/javascript">
table = document.getElementById('test2');
row = table.insertRow(0);
cell = row.insertCell(0);
cell.setAttribute('class', 'someClass');
cell.appendChild(document.createTextNode('padding?'));
table = document.getElementById('test3');
row = table.insertRow(0);
cell = row.insertCell(0);
// cell.setAttribute('class', 'someClass');
cell.appendChild(document.createTextNode('padding?'));
</script>
</body>
</html>

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

@ -0,0 +1,42 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Table element insertion bugs - insertRow()</title>
</head>
<body>
<h1>insertRow() bugs, 0 based</h1>
<table border>
<tbody id="touse">
<tr>
<td>
This is just dummy text.
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
touse = document.getElementById("touse");
while (touse.hasChildNodes() ) {
touse.removeChild(touse.firstChild);
}
/* i could be 0 or 1 - whatever is first ends up at the end */
for ( var i = 0 ; i < 6; i++ ) {
newrow = touse.insertRow(i);
newcell = newrow.insertCell(0);
newcell.appendChild(
document.createTextNode("This is row number " + i + ".")
)
}
</script>
</body>
</html>

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

@ -0,0 +1,41 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">
<html>
<head>
<title>Table element insertion bugs - insertCell()</title>
</head>
<body>
<h1>insertCell() bugs, 0 based</h1>
<table border>
<tbody>
<tr id="touse">
<td>
This is just dummy text.
</td>
</tr>
</tbody>
</table>
<script type="text/javascript">
touse = document.getElementById("touse");
while (touse.hasChildNodes() ) {
touse.removeChild(touse.firstChild);
}
/* i could be 0 or 1 - whatever is first ends up at the end */
for ( var i = 0 ; i < 6; i++ ) {
newcell = touse.insertCell(i);
newcell.appendChild(
document.createTextNode("This is cell number " + i + ".")
)
}
</script>
</body>
</html>

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

@ -1,6 +1,7 @@
file:///s|/mozilla/layout/html/tests/table/bugs/bug28856.xul
file:///s|/mozilla/layout/html/tests/table/bugs/bug10009.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1010.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug10140.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug10216.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug10269-1.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug10269-2.html
@ -44,11 +45,14 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug12910-2.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1296.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1302.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug13105.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug13118.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1318.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1318.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug13169.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug13484.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug13526.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug14007-1.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug14007-2.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug14159-1.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug14159-2.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug14159-3.html
@ -80,6 +84,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug1818-5.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1818-6.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug1828.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug18359.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug18440.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug18558.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug18664.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug18770.html
@ -97,6 +102,7 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug2123.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug21299.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug21518.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug21918.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug22019.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug22122.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug22246-2.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug22246-2a.html
@ -125,11 +131,13 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug24880.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug24880-1.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug25004.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug25074.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug25086.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug2509.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug25367.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug2516.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug25663.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug2585.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug26178.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug26193.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug26553.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug2684.html
@ -232,6 +240,8 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug9072.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug9123-1.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug9123-2.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug963.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug9271-1.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug9271-2.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug965.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug9879.html
file:///s|/mozilla/layout/html/tests/table/bugs/bug9879-1.html