summaryrefslogtreecommitdiff
path: root/test/html
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-02-28 00:40:36 +0100
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-03-02 20:47:59 +0100
commiteed15beb109cf83af1d1c66cc77c85430b405f78 (patch)
treeb13c4c896f8e3469e125a0ee1f8d9bd49d7157b0 /test/html
parenta83ae699df1748fa0c7fccc36935f43d48631fc5 (diff)
Add another td width render test with an image
Diffstat (limited to 'test/html')
-rw-r--r--test/html/Makefile.am2
-rw-r--r--test/html/render/table-td-width-percent-img.html18
-rw-r--r--test/html/render/table-td-width-percent-img.ref.html18
3 files changed, 38 insertions, 0 deletions
diff --git a/test/html/Makefile.am b/test/html/Makefile.am
index b0568365..a6d9d4cf 100644
--- a/test/html/Makefile.am
+++ b/test/html/Makefile.am
@@ -19,6 +19,7 @@ TESTS = \
render/min-width-html.html \
render/min-width-nested-div.html \
render/span-padding.html \
+ render/table-td-width-percent-img.html \
render/table-td-width-percent.html \
render/table-thead-tfoot.html \
render/white-space.html
@@ -31,4 +32,5 @@ XFAIL_TESTS = \
render/max-width-html.html \
render/min-width-html.html \
render/span-padding.html \
+ render/table-td-width-percent-img.html \
render/table-td-width-percent.html
diff --git a/test/html/render/table-td-width-percent-img.html b/test/html/render/table-td-width-percent-img.html
new file mode 100644
index 00000000..2368cf7c
--- /dev/null
+++ b/test/html/render/table-td-width-percent-img.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <body>
+ <table>
+ <tr>
+ <td width="128" style="background: lightblue">
+ The next cell is 50%
+ </td>
+ <td width="50%" style="background: lightgreen">
+ <div>
+ <img src="pic.png">
+ </div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>
diff --git a/test/html/render/table-td-width-percent-img.ref.html b/test/html/render/table-td-width-percent-img.ref.html
new file mode 100644
index 00000000..52cc6469
--- /dev/null
+++ b/test/html/render/table-td-width-percent-img.ref.html
@@ -0,0 +1,18 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+"http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <body>
+ <table>
+ <tr>
+ <td width="128" style="background: lightblue">
+ The next cell is 50%
+ </td>
+ <td style="background: lightgreen">
+ <div>
+ <img src="pic.png">
+ </div>
+ </td>
+ </tr>
+ </table>
+ </body>
+</html>