diff options
author | bptato <nincsnevem662@gmail.com> | 2024-07-27 01:15:12 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-07-27 01:25:52 +0200 |
commit | b1a01e172232d66c5dee061931fb6b14159862d2 (patch) | |
tree | cb7890ae77f5ec31438744b33aa6d68d73fcb371 /test | |
parent | 1786358f347229bc2c7c4b7824629a43479707a4 (diff) | |
download | chawan-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.expected | 11 | ||||
-rw-r--r-- | test/layout/inline-table-missing-parents.html | 23 | ||||
-rw-r--r-- | test/layout/inline-table.expected | 1 |
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 [48;2;255;0;0mtest 5[49m test 6 +test 7 test 8 test 9 +test 9.5 +[48;2;255;0;0mthing thing3[49m +[48;2;255;0;0mthing2 [49m +[48;2;255;0;0mthing2.5 thing3 [49m +[48;2;255;0;0mthing4 [49m +[48;2;0;0;255mtest [49m + 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 |