about summary refs log tree commit diff stats
path: root/test/layout
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/layout
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/layout')
-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">
+う
evem662@gmail.com> 2024-02-10 22:54:31 +0100 loader: fix tee' href='/ahoang/chawan/commit/src/loader/loaderhandle.nim?id=c4f0423e1a786fef840fd2f8c5c6bba550b353ab'>c4f0423e ^
407b5253 ^
c4f0423e ^
407b5253 ^
b789b0b0 ^
aadbaffa ^
407b5253 ^
c4f0423e ^
407b5253 ^
c4f0423e ^



b789b0b0 ^
c4f0423e ^

b789b0b0 ^

27a47bc9 ^
b789b0b0 ^
5c978a34 ^
b789b0b0 ^













60dc3726 ^

d8c4b097 ^
407b5253 ^
b789b0b0 ^



60dc3726 ^
250cbcfa ^

d526deb9 ^
c4f0423e ^





973e8f94 ^
b789b0b0 ^




973e8f94 ^
d526deb9 ^
60dc3726 ^
b789b0b0 ^
c4f0423e ^


b789b0b0 ^

60dc3726 ^
c4f0423e ^


b789b0b0 ^
c4f0423e ^



d526deb9 ^
407b5253 ^
c4f0423e ^
407b5253 ^
b789b0b0 ^


407b5253 ^
dbdb1c0d ^


c4f0423e ^
407b5253 ^
c4f0423e ^




407b5253 ^
c4f0423e ^

8268ba2c ^




c4f0423e ^




b789b0b0 ^
60dc3726 ^

8268ba2c ^






d526deb9 ^
c4f0423e ^

aa8f9676 ^
b789b0b0 ^





fb21b1e4 ^
7fd73dff ^



60dc3726 ^
7fd73dff ^

b789b0b0 ^






fb21b1e4 ^
7fd73dff ^
b789b0b0 ^
d526deb9 ^
b789b0b0 ^




fb21b1e4 ^
7fd73dff ^
b789b0b0 ^


aadbaffa ^



b789b0b0 ^
aadbaffa ^

d526deb9 ^
60dc3726 ^






3aaddac0 ^



60dc3726 ^







2ab1e53b ^



d526deb9 ^
60dc3726 ^
c4f0423e ^
8268ba2c ^
c4f0423e ^
2ab1e53b ^
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206