about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-06-02 18:54:06 +0200
committerbptato <nincsnevem662@gmail.com>2024-06-02 18:54:06 +0200
commit32b2736d92b3f94343c91e86ad9dc67ec2e453b7 (patch)
tree316eb8c5b34c33ea34f3c94f303b8ff3399cb908 /test
parentd15b6bb7c6f47c81e37f6e86a078ff754d3bfabf (diff)
downloadchawan-32b2736d92b3f94343c91e86ad9dc67ec2e453b7.tar.gz
renderdocument: handle overlapping double width chars
See attached test case; previously, this would result in a missing space
in visual mode and a crash in dump mode.
Diffstat (limited to 'test')
-rw-r--r--test/layout/overlapping-double-width-chars.color.expected2
-rw-r--r--test/layout/overlapping-double-width-chars.html7
2 files changed, 9 insertions, 0 deletions
diff --git a/test/layout/overlapping-double-width-chars.color.expected b/test/layout/overlapping-double-width-chars.color.expected
new file mode 100644
index 00000000..3d30b50f
--- /dev/null
+++ b/test/layout/overlapping-double-width-chars.color.expected
@@ -0,0 +1,2 @@
+う い                                                                           
+
diff --git a/test/layout/overlapping-double-width-chars.html b/test/layout/overlapping-double-width-chars.html
new file mode 100644
index 00000000..c1ee0d7d
--- /dev/null
+++ b/test/layout/overlapping-double-width-chars.html
@@ -0,0 +1,7 @@
+<!DOCTYPE html>
+<div style="background-color: red">
+<div>
+xあい
+</div>
+<div style="margin-top: -1em">
+う