about summary refs log tree commit diff stats
path: root/test/layout/inline-float-breaks-line.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-06 16:31:10 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-06 16:31:10 +0100
commite066acad98c510cfd9bd2593affcbb9673c93dca (patch)
treeb2c3da955eb887ca8fc1ad880968650e18f4e7c7 /test/layout/inline-float-breaks-line.html
parent9ae109b366c7a933965ff506a7ce275a7abe71ed (diff)
downloadchawan-e066acad98c510cfd9bd2593affcbb9673c93dca.tar.gz
layout: wrap on inline floats that exceed the line's length
In this case, it seems we have to wrap.

(It's still not quite there; replace flow-root with inline-box to see
another interesting bug...)
Diffstat (limited to 'test/layout/inline-float-breaks-line.html')
-rw-r--r--test/layout/inline-float-breaks-line.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/layout/inline-float-breaks-line.html b/test/layout/inline-float-breaks-line.html
new file mode 100644
index 00000000..2bd74860
--- /dev/null
+++ b/test/layout/inline-float-breaks-line.html
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<div style="display: flow-root">
+test1
+<div style="float: left; width: 100%">
+test2
+</div>
+<div style="float: left">
+test3
+</div>
+test4
+</div>
+<div style="display: flow-root">
+test1
+<div style="float: left; width: 50%">
+test2
+</div>
+<div style="float: left">
+test3
+</div>
+test4
+</div>