about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-30 19:55:33 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-30 19:59:20 +0200
commitcb07433aa14a214f9fe301525c59ffdae58d28c2 (patch)
treefb9f7d40231538d2eb2ab27db9a9466d9388fb96 /test
parent76fb1173641abd7f1b2ada2e346ef0c426663256 (diff)
downloadchawan-cb07433aa14a214f9fe301525c59ffdae58d28c2.tar.gz
layout: fix caption margin calculation
* merge caption sizing code path with layoutRootBlock
* fix caption margins being disregarded
* fix incorrect positioning of `caption-side: bottom'
Diffstat (limited to 'test')
-rw-r--r--test/layout/table-caption-margins.expected7
-rw-r--r--test/layout/table-caption-margins.html12
2 files changed, 19 insertions, 0 deletions
diff --git a/test/layout/table-caption-margins.expected b/test/layout/table-caption-margins.expected
new file mode 100644
index 00000000..7fe2215d
--- /dev/null
+++ b/test/layout/table-caption-margins.expected
@@ -0,0 +1,7 @@
+ something something
+ row 2
+
+
+
+
+        testing
diff --git a/test/layout/table-caption-margins.html b/test/layout/table-caption-margins.html
new file mode 100644
index 00000000..a3e3759e
--- /dev/null
+++ b/test/layout/table-caption-margins.html
@@ -0,0 +1,12 @@
+<table>
+<tr>
+<td>
+something something
+<tr>
+<td>
+row 2
+<caption style="caption-side: bottom; margin-top: 2em; margin-left: 1ch">
+<div style="margin-top: 2em">
+testing
+</div>
+</caption>