diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-04-20 21:35:05 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-04-28 22:37:01 +0200 |
commit | ad9b7a1bb01ac2aeed13a50991071fb2d565d7f3 (patch) | |
tree | f1690a340e4fbcb9592ce848b8a64da23109855b /test/html/render | |
parent | 021adb56db9d66cee2b58a635764798245b494d0 (diff) |
Add HTML test for missing width in one column
It is currently failing, as the unbounded column is taking all the
space.
Reported-by: Kevin Koster <dillo@ombertech.com>
Link: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/H7JEBC2HYNJ6FUPQM7ILBP7I5FLU33IZ/
Link: https://www.mail-archive.com/dillo-dev@mailman3.com/msg00020.html
Diffstat (limited to 'test/html/render')
-rw-r--r-- | test/html/render/table-missing-width-in-one-column.html | 19 | ||||
-rw-r--r-- | test/html/render/table-missing-width-in-one-column.ref.html | 19 |
2 files changed, 38 insertions, 0 deletions
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> |