about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-11-24 14:04:51 +0100
committerbptato <nincsnevem662@gmail.com>2024-11-24 14:07:59 +0100
commitb445b3a54a471b98e59545b6416eee9484f6d945 (patch)
tree464b970a3979d4ec4e275674c5612e2021f4d9a8 /test
parentdf2e58dd2ccf4140a368acf21a83e6efb2f8d9ac (diff)
downloadchawan-b445b3a54a471b98e59545b6416eee9484f6d945.tar.gz
layout: fix intrinsic min width for words with wrapping opportunities
This broke CJK combined with table layouts.

(Inline layout's state dependencies between procs are getting a bit
scary...)
Diffstat (limited to 'test')
-rw-r--r--test/layout/intrinsic-min-width-with-breaking-opportunities.expected18
-rw-r--r--test/layout/intrinsic-min-width-with-breaking-opportunities.html39
2 files changed, 57 insertions, 0 deletions
diff --git a/test/layout/intrinsic-min-width-with-breaking-opportunities.expected b/test/layout/intrinsic-min-width-with-breaking-opportunities.expected
new file mode 100644
index 00000000..c9827431
--- /dev/null
+++ b/test/layout/intrinsic-min-width-with-breaking-opportunities.expected
@@ -0,0 +1,18 @@
+      ああ
+ test ああ
+ test ああ
+      ああ
+ test ああああああああ
+ test
+ test aaaaaaaaaaaaaaaa
+ test
+ test aaaaaaaaaaaaaaaa
+ test
+      a-a-
+      a-a-
+      a-a-
+ test a-a-
+ test a-a-
+      a-a-
+      a-a-
+      a-a
diff --git a/test/layout/intrinsic-min-width-with-breaking-opportunities.html b/test/layout/intrinsic-min-width-with-breaking-opportunities.html
new file mode 100644
index 00000000..e0ac1332
--- /dev/null
+++ b/test/layout/intrinsic-min-width-with-breaking-opportunities.html
@@ -0,0 +1,39 @@
+<table style="width: 10ch">
+<tr>
+<td>
+test test
+<td>
+ああああああああ
+</table>
+
+<table style="width: 10ch">
+<tr>
+<td>
+test test
+<td style="word-break: keep-all">
+ああああああああ
+</table>
+
+<table style="width: 10ch">
+<tr>
+<td>
+test test
+<td>
+aaaaaaaaaaaaaaaa
+</table>
+
+<table style="width: 10ch">
+<tr>
+<td>
+test test
+<td style="word-break: break-all">
+aaaaaaaaaaaaaaaa
+</table>
+
+<table style="width: 10ch">
+<tr>
+<td>
+test test
+<td>
+a-a-a-a-a-a-a-a-a-a-a-a-a-a-a-a
+</table>