From b4cbdb8e1eb8af2a55d6a5b22316d59c87612578 Mon Sep 17 00:00:00 2001 From: bptato Date: Thu, 30 May 2024 17:33:45 +0200 Subject: 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. --- test/layout/new-bfc-clears-floats.expected | 4 ++++ test/layout/new-bfc-clears-floats.html | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 test/layout/new-bfc-clears-floats.expected create mode 100644 test/layout/new-bfc-clears-floats.html (limited to 'test/layout') 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 @@ +
left
+
right
+
testing
+
left
+
right
+
testing
-- cgit 1.4.1-2-gfad0 href='/akkartik/mu/commit/html/000organization.cc.html?h=main&id=5ba6af94bf70f831db6a9683d03ead9721152418'>commit diff stats
path: root/html/000organization.cc.html
blob: b882e19c6fbd696da243768598016c91561234d0 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12