aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-17 19:41:40 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-17 19:41:40 +0100
commit3f1d74582e1511080096dee6e48311e41ad68a65 (patch)
tree4a29a3ff38e0915bf7fdd850df2849cd440802ef /test
parent07aa685c8012b1700097f3b25369efd329cfe756 (diff)
downloadchawan-3f1d74582e1511080096dee6e48311e41ad68a65.tar.gz
layout: fix crash on overlapping rowspan/colspan
The rowspan filler must get a smaller colspan if its first cells are occupied by another cell with a colspan > 1.
Diffstat (limited to 'test')
-rw-r--r--test/layout/table-overlapping-rowspan-and-colspan.expected3
-rw-r--r--test/layout/table-overlapping-rowspan-and-colspan.html20
2 files changed, 23 insertions, 0 deletions
diff --git a/test/layout/table-overlapping-rowspan-and-colspan.expected b/test/layout/table-overlapping-rowspan-and-colspan.expected
new file mode 100644
index 00000000..442b1372
--- /dev/null
+++ b/test/layout/table-overlapping-rowspan-and-colspan.expected
@@ -0,0 +1,3 @@
+ test test
+ col2 test col4
+
diff --git a/test/layout/table-overlapping-rowspan-and-colspan.html b/test/layout/table-overlapping-rowspan-and-colspan.html
new file mode 100644
index 00000000..9f4d7353
--- /dev/null
+++ b/test/layout/table-overlapping-rowspan-and-colspan.html
@@ -0,0 +1,20 @@
+<!DOCTYPE html>
+<table>
+<tr>
+<td>
+test
+</td>
+<td rowspan=2 bgcolor=blue>
+test<br>
+test
+</td>
+</tr>
+<tr>
+<td colspan=2>
+col2
+</td>
+<td>
+col4
+</td>
+</tr>
+</table>