aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/html/Makefile.am2
-rw-r--r--test/html/render/table-missing-width-in-one-column.html19
-rw-r--r--test/html/render/table-missing-width-in-one-column.ref.html19
3 files changed, 40 insertions, 0 deletions
diff --git a/test/html/Makefile.am b/test/html/Makefile.am
index 43417ce6..a34da697 100644
--- a/test/html/Makefile.am
+++ b/test/html/Makefile.am
@@ -25,6 +25,7 @@ TESTS = \
render/min-width-nested-div.html \
render/span-padding.html \
render/table-max-width.html \
+ render/table-missing-width-in-one-column.html \
render/table-td-width-percent-img.html \
render/table-td-width-percent.html \
render/table-thead-tfoot.html \
@@ -39,4 +40,5 @@ XFAIL_TESTS = \
render/max-width-html.html \
render/min-width-html.html \
render/span-padding.html \
+ render/table-missing-width-in-one-column.html \
render/table-td-width-percent.html
diff --git a/test/html/render/table-missing-width-in-one-column.html b/test/html/render/table-missing-width-in-one-column.html
new file mode 100644
index 00000000..04a24597
--- /dev/null
+++ b/test/html/render/table-missing-width-in-one-column.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/REC-html401/loose.dtd">
+<html>
+ <head>
+ <title>Table with percent width except in one column</title>
+ </head>
+ <body style="width: 400px">
+ <table width="100%" cellspacing=0 cellpadding=0 border=0>
+ <tr>
+ <td style="background:pink" width="25%"></td>
+ <td style="background:lightgreen">
+ This is the middle row, which should measure half the table
+ width.
+ </td>
+ <td style="background:pink" width="25%"></td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/test/html/render/table-missing-width-in-one-column.ref.html b/test/html/render/table-missing-width-in-one-column.ref.html
new file mode 100644
index 00000000..effc7401
--- /dev/null
+++ b/test/html/render/table-missing-width-in-one-column.ref.html
@@ -0,0 +1,19 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/REC-html401/loose.dtd">
+<html>
+ <head>
+ <title>Table with percent width except in one column</title>
+ </head>
+ <body style="width: 400px">
+ <table width="400" cellspacing=0 cellpadding=0 border=0>
+ <tr>
+ <td style="background:pink" width="100"></td>
+ <td style="background:lightgreen" width="200">
+ This is the middle row, which should measure half the table
+ width.
+ </td>
+ <td style="background:pink" width="100"></td>
+ </tr>
+ </table>
+ </body>
+</html>