about summary refs log tree commit diff stats
path: root/test/layout/inline-float-before-and-after-clear.html
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2025-01-26 21:51:33 +0100
committerbptato <nincsnevem662@gmail.com>2025-01-26 22:29:46 +0100
commite09bedbb44e45de48adc030daa240d7aa9693339 (patch)
tree116c0940990beecfec4fe55873aef875daf73516 /test/layout/inline-float-before-and-after-clear.html
parentd1372cda89c754b0a7e83480aa7564d21fd90a37 (diff)
downloadchawan-e09bedbb44e45de48adc030daa240d7aa9693339.tar.gz
layout: various float fixes in inline contexts
* reinit line after outer block height is known
* do not set wrap in finishLine preceding outer block layout
* attach pending inline floats to line boxes
* unify flow a bit more

The last two points mean that we now (mostly) handle inline floats
like block floats, which is great because only the latter ever worked
properly.

(Well, margin resolution still needs work...)
Diffstat (limited to 'test/layout/inline-float-before-and-after-clear.html')
-rw-r--r--test/layout/inline-float-before-and-after-clear.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/layout/inline-float-before-and-after-clear.html b/test/layout/inline-float-before-and-after-clear.html
new file mode 100644
index 00000000..b4e56054
--- /dev/null
+++ b/test/layout/inline-float-before-and-after-clear.html
@@ -0,0 +1,6 @@
+<!DOCTYPE html>
+<span>inline</span>
+<div style="float: left">left</div>
+<div style="clear: both">clear</div>
+<div style="color: red">block</div>
+<div style="float: left">float</div>