diff options
| author | bptato <nincsnevem662@gmail.com> | 2025-01-26 21:51:33 +0100 |
|---|---|---|
| committer | bptato <nincsnevem662@gmail.com> | 2025-01-26 22:29:46 +0100 |
| commit | e09bedbb44e45de48adc030daa240d7aa9693339 (patch) | |
| tree | 116c0940990beecfec4fe55873aef875daf73516 /test/layout/inline-float-weirdness.html | |
| parent | d1372cda89c754b0a7e83480aa7564d21fd90a37 (diff) | |
| download | chawan-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-weirdness.html')
| -rw-r--r-- | test/layout/inline-float-weirdness.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/test/layout/inline-float-weirdness.html b/test/layout/inline-float-weirdness.html new file mode 100644 index 00000000..fee51504 --- /dev/null +++ b/test/layout/inline-float-weirdness.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<div style="display: inline-block; background: blue"> +test +<div style="float: left; width: 100%; background: red"> +test +</div> +test<br> +test +</div> +<div style="display: inline-block; background: blue"> +<div> +test +<div style="float: left; width: 100%; background: red"> +test +</div> +test<br> +test +</div> +</div> +<div style="display: inline-block; background: blue"> +<div style="float: left; width: 100%; background: red"> +test +</div> +test<br> +test +</div> +<div style="background: blue"> +test +<div style="float: left; width: 100%; background: red"> +test +</div> +test<br> +test +</div> |