From ece80cce7eb8fc873af87f61e41c0819d467da29 Mon Sep 17 00:00:00 2001 From: "karnaze%netscape.com" <karnaze%netscape.com> Date: Wed, 16 Feb 2000 00:36:29 +0000 Subject: [PATCH] new regression tests not affecting the build --- layout/html/tests/table/bugs/bug1802.html | 26 +++++ layout/html/tests/table/bugs/bug7112-1.html | 122 +++++++++++++++++++ layout/html/tests/table/bugs/bug7112-2.html | 123 ++++++++++++++++++++ layout/html/tests/table/bugs/file_list.txt | 5 +- 4 files changed, 275 insertions(+), 1 deletion(-) create mode 100644 layout/html/tests/table/bugs/bug1802.html create mode 100644 layout/html/tests/table/bugs/bug7112-1.html create mode 100644 layout/html/tests/table/bugs/bug7112-2.html diff --git a/layout/html/tests/table/bugs/bug1802.html b/layout/html/tests/table/bugs/bug1802.html new file mode 100644 index 0000000000000..cb74ef700e3d1 --- /dev/null +++ b/layout/html/tests/table/bugs/bug1802.html @@ -0,0 +1,26 @@ +<table width=200 border=1> + <tr><td>AAA<td>BBB + <tr align=center><td>A<td>B + <tr align=right><td>A<td>B +</table> + +<BR> + +<table width="100%" border> + <tr> + <td align="left"><tr></td> + <th>th: Center</th> + <td>td: Left</td> + </tr> + <tr align="left"> + <td align="left"><tr align="left"></td> + <th>th: Left</th> + <td>td: Left</td> + </tr> + <tr align="center"> + <td align="left"><tr align="center"></td> + <th>th: Center</th> + <td>td: Center</td> + </tr> +</table> +<BR> diff --git a/layout/html/tests/table/bugs/bug7112-1.html b/layout/html/tests/table/bugs/bug7112-1.html new file mode 100644 index 0000000000000..40778d66a5a90 --- /dev/null +++ b/layout/html/tests/table/bugs/bug7112-1.html @@ -0,0 +1,122 @@ +<p>This is a table with a <code>td align=center</code> that has a p, a table, +and a p.</p> +<table border width="30%"> + <tr> + <td align=center> + <p>text</p> + <table border> + <tr> + <td>text 3</td> + </tr> + </table> + <p>text</p> + </td> + </tr> +</table> + +<p>This time the inner table has <code>width="100%"</code>, so you can see +that the CSS spec isn't quite being followed. The CSS spec says that +the align=center carries down as text-align and never acts to move blocks. +You're not moving the block for the table (above), but you're not doing +the text-align inside it either. In quirks mode you should do the former, +in standard mode, the latter.</p> + +<table border width="30%"> + <tr> + <td align=center> + <p>text</p> + <table border width="100%"> + <tr> + <td>text 3</td> + </tr> + </table> + <p>text</p> + </td> + </tr> +</table> +<BR> +<table width=300 border align="center"> +<tr><td>Data of Table 1!</td></tr> +</table> + +<BR> + +<table width=300 border style="text-align: center"> +<tr><td>Data of Table 2!</td></tr> +</table> + +<BR> + +<div style="border: 1px solid black" align="center"> +<table> +<tr><td>Data of Table 3!</td></tr> +</table> +</div> + +<BR> + +<div style="text-align: center; border: 1px solid black;"> +<table> +<tr><td>Data of Table 4!</td></tr> +</table> +</div> + +<BR> + +<table width=100%> + <tr> + <td align=center> + Text, followed by + <table> + <tr> + <td> + A table. + </td> + </tr> + </table> + </td> + </tr> +</table> + +<p>...should look identical to the first one below:</p> + +<table width=100%> + <tr> + <td> + <div align=center>Text, followed by</div> + <table width=100%> + <tr> + <td> + <div align=center>A table.</div> + </td> + </tr> + </table> + </td> + </tr> +</table> + +<p>However, in standard mode, the first table should look like this: + +<table width=100%> + <tr> + <td> + <div align=center>Text, followed by</div> + <table width=100%> + <tr> + <td> + A table. + </td> + </tr> + </table> + </td> + </tr> +</table> + +<p>For reference, the second table has its text all centered, the third table has the "A table." line +aligned left.</p> + +<hr> + +<p> See also: <a href="tablealign.strict.html">Strict Mode Version</a> </p> +--> + diff --git a/layout/html/tests/table/bugs/bug7112-2.html b/layout/html/tests/table/bugs/bug7112-2.html new file mode 100644 index 0000000000000..a8090d9c9d9bb --- /dev/null +++ b/layout/html/tests/table/bugs/bug7112-2.html @@ -0,0 +1,123 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"> +<p>This is a table with a <code>td align=center</code> that has a p, a table, +and a p.</p> +<table border width="30%"> + <tr> + <td align=center> + <p>text</p> + <table border> + <tr> + <td>text 3</td> + </tr> + </table> + <p>text</p> + </td> + </tr> +</table> + +<p>This time the inner table has <code>width="100%"</code>, so you can see +that the CSS spec isn't quite being followed. The CSS spec says that +the align=center carries down as text-align and never acts to move blocks. +You're not moving the block for the table (above), but you're not doing +the text-align inside it either. In quirks mode you should do the former, +in standard mode, the latter.</p> + +<table border width="30%"> + <tr> + <td align=center> + <p>text</p> + <table border width="100%"> + <tr> + <td>text 3</td> + </tr> + </table> + <p>text</p> + </td> + </tr> +</table> +<BR> +<table width=300 border align="center"> +<tr><td>Data of Table 1!</td></tr> +</table> + +<BR> + +<table width=300 border style="text-align: center"> +<tr><td>Data of Table 2!</td></tr> +</table> + +<BR> + +<div style="border: 1px solid black" align="center"> +<table> +<tr><td>Data of Table 3!</td></tr> +</table> +</div> + +<BR> + +<div style="text-align: center; border: 1px solid black;"> +<table> +<tr><td>Data of Table 4!</td></tr> +</table> +</div> + +<BR> + +<table width=100%> + <tr> + <td align=center> + Text, followed by + <table> + <tr> + <td> + A table. + </td> + </tr> + </table> + </td> + </tr> +</table> + +<p>...should look identical to the first one below:</p> + +<table width=100%> + <tr> + <td> + <div align=center>Text, followed by</div> + <table width=100%> + <tr> + <td> + <div align=center>A table.</div> + </td> + </tr> + </table> + </td> + </tr> +</table> + +<p>However, in standard mode, the first table should look like this: + +<table width=100%> + <tr> + <td> + <div align=center>Text, followed by</div> + <table width=100%> + <tr> + <td> + A table. + </td> + </tr> + </table> + </td> + </tr> +</table> + +<p>For reference, the second table has its text all centered, the third table has the "A table." line +aligned left.</p> + +<hr> + +<p> See also: <a href="tablealign.strict.html">Strict Mode Version</a> </p> +--> + diff --git a/layout/html/tests/table/bugs/file_list.txt b/layout/html/tests/table/bugs/file_list.txt index e997d7f366164..6410c81917a78 100644 --- a/layout/html/tests/table/bugs/file_list.txt +++ b/layout/html/tests/table/bugs/file_list.txt @@ -64,7 +64,8 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug17548.html file:///s|/mozilla/layout/html/tests/table/bugs/bug17587.html file:///s|/mozilla/layout/html/tests/table/bugs/bug17826.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1800.html -file:///s|/mozilla/layout/html/tests/table/bugs/bug1809.html +file:///s|/mozilla/layout/html/tests/table/bugs/bug1800.html +file:///s|/mozilla/layout/html/tests/table/bugs/bug1802.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1818-1.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1818-2.html file:///s|/mozilla/layout/html/tests/table/bugs/bug1818-3.html @@ -176,6 +177,8 @@ file:///s|/mozilla/layout/html/tests/table/bugs/bug650.html file:///s|/mozilla/layout/html/tests/table/bugs/bug6674.html file:///s|/mozilla/layout/html/tests/table/bugs/bug6933.html file:///s|/mozilla/layout/html/tests/table/bugs/bug709.html +file:///s|/mozilla/layout/html/tests/table/bugs/bug7112-1.html +file:///s|/mozilla/layout/html/tests/table/bugs/bug7112-2.html file:///s|/mozilla/layout/html/tests/table/bugs/bug7121-1.html file:///s|/mozilla/layout/html/tests/table/bugs/bug7121-2.html file:///s|/mozilla/layout/html/tests/table/bugs/bug7243.html -- GitLab