diff options
author | bptato <nincsnevem662@gmail.com> | 2025-04-06 19:52:57 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-04-06 20:07:21 +0200 |
commit | 27fb1388b0644da1e733b07042e0cf30eea8d7b9 (patch) | |
tree | 9ff40bf2a4c124e5133d074667afc3bfc2d9be32 /test | |
parent | 55da4b6f458f5b80ad242bf6088a119bb05531c1 (diff) | |
download | chawan-27fb1388b0644da1e733b07042e0cf30eea8d7b9.tar.gz |
layout: fix cleared floats not flushing previous exclusions
Well, I was trying to reproduce *another* float bug when I accidentally stumbled upon this... The fix is somewhat ugly, but not as bad as I expected.
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/cleared-float-with-text-on-same-line-box.expected | 3 | ||||
-rw-r--r-- | test/layout/cleared-float-with-text-on-same-line-box.html | 10 |
2 files changed, 13 insertions, 0 deletions
diff --git a/test/layout/cleared-float-with-text-on-same-line-box.expected b/test/layout/cleared-float-with-text-on-same-line-box.expected new file mode 100644 index 00000000..7518590a --- /dev/null +++ b/test/layout/cleared-float-with-text-on-same-line-box.expected @@ -0,0 +1,3 @@ +floattest test test test test +floatfloat float +float diff --git a/test/layout/cleared-float-with-text-on-same-line-box.html b/test/layout/cleared-float-with-text-on-same-line-box.html new file mode 100644 index 00000000..b7b287cc --- /dev/null +++ b/test/layout/cleared-float-with-text-on-same-line-box.html @@ -0,0 +1,10 @@ +<!DOCTYPE html> +<div style="width: 40ch"> +<div style="float: left; clear: both">float</div> +<div style="float: left; clear: left">float</div> +<div style="float: left">float</div> +test test test +<div style="float: right">float</div> +<div style="float: left; clear: left">float</div> +test test +</div> |