about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-07-27 01:15:12 +0200
committerbptato <nincsnevem662@gmail.com>2024-07-27 01:25:52 +0200
commitb1a01e172232d66c5dee061931fb6b14159862d2 (patch)
treecb7890ae77f5ec31438744b33aa6d68d73fcb371 /test
parent1786358f347229bc2c7c4b7824629a43479707a4 (diff)
downloadchawan-b1a01e172232d66c5dee061931fb6b14159862d2.tar.gz
layout: inline table fixes
* properly wrap inline internal table boxes in inline-table (instead
  of block-level table)
* fix missing baseline in table wrapper boxes
* fix wrong wrapping of misparented table/row/row group children
Diffstat (limited to 'test')
-rw-r--r--test/layout/inline-table-missing-parents.color.expected11
-rw-r--r--test/layout/inline-table-missing-parents.html23
-rw-r--r--test/layout/inline-table.expected1
3 files changed, 34 insertions, 1 deletions
diff --git a/test/layout/inline-table-missing-parents.color.expected b/test/layout/inline-table-missing-parents.color.expected
new file mode 100644
index 00000000..28542efd
--- /dev/null
+++ b/test/layout/inline-table-missing-parents.color.expected
@@ -0,0 +1,11 @@
+test 1 test 2 test 3
+test 3.5
+test 4 test 5 test 6
+test 7 test 8 test 9
+test 9.5
+thing          thing3
+thing2               
+thing2.5 thing3      
+thing4               
+test           
+
diff --git a/test/layout/inline-table-missing-parents.html b/test/layout/inline-table-missing-parents.html
new file mode 100644
index 00000000..5faf3e53
--- /dev/null
+++ b/test/layout/inline-table-missing-parents.html
@@ -0,0 +1,23 @@
+<!DOCTYPE html>
+<div style="display: table-row">
+<span>test 1
+<div style="display: inline-table; line-height: 1em"><div style="display: table-row"><div style="display: table-cell">test 2</div></div></div>
+<!--
+<div style="display: inline-block"><div><div>test</div></div></div>
+ -->
+test 3<br>test 3.5</span>
+</div>
+<span>test 4 <div style="display: table-row; background: red">test 5</div> test 6</span>
+<br>
+<span>test 7 <div style="display: table-cell">test 8</div> test 9<br>test 9.5</span>
+<div style="display: table-row; background: red">
+<div>thing</div>
+<div>thing2</div>
+thing2.5
+<span>thing3</span>
+<div>thing4</div>
+<div style="display: table-cell">
+thing3
+</div>
+</div>
+<div style="display: table-row"><div style="display: table-cell; background: blue">test</div></div>
diff --git a/test/layout/inline-table.expected b/test/layout/inline-table.expected
index 8405060b..9daeafb9 100644
--- a/test/layout/inline-table.expected
+++ b/test/layout/inline-table.expected
@@ -1,2 +1 @@
-
 test