diff options
author | bptato <nincsnevem662@gmail.com> | 2024-05-30 17:33:45 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-05-30 17:36:47 +0200 |
commit | b4cbdb8e1eb8af2a55d6a5b22316d59c87612578 (patch) | |
tree | d61a132b0ea64cde82608a96b23ed4739533ab50 /test | |
parent | efbbe82f2387368ec771ab1b58ba735b63f9c7e3 (diff) | |
download | chawan-b4cbdb8e1eb8af2a55d6a5b22316d59c87612578.tar.gz |
layout: fix clear on blocks establishing new BFCs
As per standard: > Adjoining vertical margins collapse, except: > [...] > If the top and bottom margins of an element with clearance are > adjoining, its margins collapse with the adjoining margins of > following siblings but that resulting margin does not collapse with > the bottom margin of the parent block.
Diffstat (limited to 'test')
-rw-r--r-- | test/layout/new-bfc-clears-floats.expected | 4 | ||||
-rw-r--r-- | test/layout/new-bfc-clears-floats.html | 6 |
2 files changed, 10 insertions, 0 deletions
diff --git a/test/layout/new-bfc-clears-floats.expected b/test/layout/new-bfc-clears-floats.expected new file mode 100644 index 00000000..876d665a --- /dev/null +++ b/test/layout/new-bfc-clears-floats.expected @@ -0,0 +1,4 @@ +left right +testing +left right +testing diff --git a/test/layout/new-bfc-clears-floats.html b/test/layout/new-bfc-clears-floats.html new file mode 100644 index 00000000..ce81c7e1 --- /dev/null +++ b/test/layout/new-bfc-clears-floats.html @@ -0,0 +1,6 @@ +<div style="float: left">left</div> +<div style="float: right">right</div> +<div style="clear: both"><div style="display: flow-root">testing</div></div> +<div style="float: left">left</div> +<div style="float: right">right</div> +<div style="clear: both; display: flow-root">testing</div> |