From e2b6a0217ab27012c3f18477dda3f9f8ff000592 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Fri, 12 Apr 2024 14:38:07 +0000 Subject: [PATCH] Element collapsing thru should collapse with its children If the top and bottom margins of an element collapse through, then this patch treats the bottom margin as collapsing with its children, even if `height` doesn't compute to zero. Co-authored-by: Martin Robinson --- .../margin-collapse-clear-011-ref.xht | 13 ++++++++++++ .../margin-collapse-clear-011.xht | 21 +++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 css/CSS2/margin-padding-clear/margin-collapse-clear-011-ref.xht create mode 100644 css/CSS2/margin-padding-clear/margin-collapse-clear-011.xht diff --git a/css/CSS2/margin-padding-clear/margin-collapse-clear-011-ref.xht b/css/CSS2/margin-padding-clear/margin-collapse-clear-011-ref.xht new file mode 100644 index 00000000000000..2611de9f4a9310 --- /dev/null +++ b/css/CSS2/margin-padding-clear/margin-collapse-clear-011-ref.xht @@ -0,0 +1,13 @@ + + + + CSS Reftest Reference + + + + +
X
+
X
+
X
+ + diff --git a/css/CSS2/margin-padding-clear/margin-collapse-clear-011.xht b/css/CSS2/margin-padding-clear/margin-collapse-clear-011.xht new file mode 100644 index 00000000000000..fed7bef25c532d --- /dev/null +++ b/css/CSS2/margin-padding-clear/margin-collapse-clear-011.xht @@ -0,0 +1,21 @@ + + + + CSS Test: Margin Collapsing with Clearance + + + + + + + + + +
X
+
X
+
+
+
+
X
+ +