Re: [csswg-drafts] [CSS2] Clarify margin collapsing behavior (#11306)

> This is all transitive, so I would say yes: when the the top and bottom margins of `div.collapsed` collapse through, the respective adjoining margins also collapse through that element. Because all the adjoining margins are collapsing together.

Great! Do you agree on the following definition?


"Collapse through": Margins are said to _collapse through_ if either:

a) The top and bottom margins of the same element collapse because the element does not establish a new block formatting context, has a computed min-height of zero, a computed height of zero or auto, and contains no in-flow children.

or

b) The margin-top of one element and the margin-bottom of another element adjoin the combined margin of an intermediary element whose margins themselves have collapsed through.

-- 
GitHub Notification of comment by gitspeaks
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11306#issuecomment-2511396972 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 2 December 2024 12:23:49 UTC