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

Aside from being verbose/'over-complicated', is there anything incorrect in the following definition? Is there a specific example where it fails?


"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.

or

c) The margin-top and margin-bottom of the same element adjoin the combined margin of an intermediary child 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-2511824386 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 15:20:27 UTC