about summary refs log tree commit diff stats
path: root/test
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-05-31 16:57:23 +0200
committerbptato <nincsnevem662@gmail.com>2024-05-31 16:57:48 +0200
commitee94caf0628730135c8bd4b46dc913a50d7ae2b6 (patch)
treed5102d02b605b0f85b91d350876c9c9d676bab83 /test
parent27a39add498a9b1dca790c11a14cc3320cce2e31 (diff)
downloadchawan-ee94caf0628730135c8bd4b46dc913a50d7ae2b6.tar.gz
layout: line box sizing fixes
* do not use inline block computed values for wrapper fragment
* fix minimum line box height calculation
Diffstat (limited to 'test')
-rw-r--r--test/layout/colored-inline-block-squares.color.expected36
-rw-r--r--test/layout/colored-inline-block-squares.html13
-rw-r--r--test/layout/line-height-change.expected4
-rw-r--r--test/layout/line-height-change.html2
4 files changed, 55 insertions, 0 deletions
diff --git a/test/layout/colored-inline-block-squares.color.expected b/test/layout/colored-inline-block-squares.color.expected
new file mode 100644
index 00000000..1e805e94
--- /dev/null
+++ b/test/layout/colored-inline-block-squares.color.expected
@@ -0,0 +1,36 @@
+
+
+
+one   ?                            ?                          ??
+                                                       
+                                                       
+                                                       
+                                                       
+                                                       
+                                                       
+                                                       
+                                                       
+                                                       
+
+     ?                   
+                         
+                         
+                         
+                         
+                         
+                         
+                         
+                         
+                         
+                         w
+      ?                    w two
+                          
+                          
+                          
+                          
+                          
+                          
+                          
+                          
+                          
+
diff --git a/test/layout/colored-inline-block-squares.html b/test/layout/colored-inline-block-squares.html
new file mode 100644
index 00000000..47a3acd3
--- /dev/null
+++ b/test/layout/colored-inline-block-squares.html
@@ -0,0 +1,13 @@
+<div>one
+<div style="display: inline-block; margin: 2ch; width: 20ch; height: 20ch; background-color: blue">
+?<br>
+</div>
+<div style="display: inline-block; margin: 6ch; width: 20ch; height: 20ch; background-color: blue">
+?<br>
+</div>
+??
+<div style="display: inline-block; margin-left: 5ch; margin-top: 1em; width: 20ch; background-color: green">?<br><br><br><br><br><br><br><br><br><br><br></div>w
+<br>
+<div style="display: inline-block; margin-left: 6ch; width: 20ch; height: 20ch; background-color: red">?</div>
+w two
+</div>
diff --git a/test/layout/line-height-change.expected b/test/layout/line-height-change.expected
new file mode 100644
index 00000000..ec17045e
--- /dev/null
+++ b/test/layout/line-height-change.expected
@@ -0,0 +1,4 @@
+
+
+one
+two
diff --git a/test/layout/line-height-change.html b/test/layout/line-height-change.html
new file mode 100644
index 00000000..1cae1f85
--- /dev/null
+++ b/test/layout/line-height-change.html
@@ -0,0 +1,2 @@
+<span style="line-height: 2em"><br>one</span><br>
+two