about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-27 18:52:49 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-27 18:52:49 +0200
commita8f3891507cf21320f78f2d4a97731ad4462c676 (patch)
tree5aac18b3cded1d03bb03f65b68399011564b8aae /test
parenta42051e4d6db9b666e9feb97d7099201d64760f5 (diff)
downloadchawan-a8f3891507cf21320f78f2d4a97731ad4462c676.tar.gz
layout: remove BlockBoxBuidler
Instead of allocating a separate object for each box, just re-use
a single BlockBox on re-layouts.

This means that now the (block-level) tree is built in its final form in
the first pass.

(Inline boxes remain the same as before for now.)
Diffstat (limited to 'test')
-rw-r--r--test/layout/float-next-to-caption.expected2
-rw-r--r--test/layout/float-next-to-caption.html4
-rw-r--r--test/layout/table-nested-simple.expected1
-rw-r--r--test/layout/table-nested-simple.html2
4 files changed, 9 insertions, 0 deletions
diff --git a/test/layout/float-next-to-caption.expected b/test/layout/float-next-to-caption.expected
new file mode 100644
index 00000000..3021c733
--- /dev/null
+++ b/test/layout/float-next-to-caption.expected
@@ -0,0 +1,2 @@
+test                                                                      test 1
+2
diff --git a/test/layout/float-next-to-caption.html b/test/layout/float-next-to-caption.html
new file mode 100644
index 00000000..68cf13bd
--- /dev/null
+++ b/test/layout/float-next-to-caption.html
@@ -0,0 +1,4 @@
+<!-- the float will trigger a re-layout in test 2. -->
+<div style="float: right">test 1</div>
+<table>
+<caption>test 2</caption>
diff --git a/test/layout/table-nested-simple.expected b/test/layout/table-nested-simple.expected
new file mode 100644
index 00000000..3f4d41a4
--- /dev/null
+++ b/test/layout/table-nested-simple.expected
@@ -0,0 +1 @@
+  Test
diff --git a/test/layout/table-nested-simple.html b/test/layout/table-nested-simple.html
new file mode 100644
index 00000000..ceca7d27
--- /dev/null
+++ b/test/layout/table-nested-simple.html
@@ -0,0 +1,2 @@
+<table width="100%"><tr><td>
+<table><tr><td>Test