Bug 249207
Summary: | [margin-trim] Implement margin trims for floats within block containers that establish block formatting context | ||
---|---|---|---|
Product: | WebKit | Reporter: | Sammy Gill <sgill26> |
Component: | Layout and Rendering | Assignee: | Sammy Gill <sgill26> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | bfulgham, simon.fraser, webkit-bug-importer, zalan |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Sammy Gill
It also affects floats for which the block container is a containing block by:
- Discarding the block-start margin of any float whose block-start outer edge coincides with the block-start inner edge of the container.
- Discarding the inline-start/inline-end margin of an inline-start/inline-end float (or equivalent) whose outer edge on that side coincides with the inner edge of the container.
- Zeroing the inline-axis margins of a float for the purpose of calculating its intrinsic size contributions or its size in the container’s inline axis.
- Trimming the block-end margins of a float to the extent necessary to prevent such a margin from extending the block size of a block formatting context root.
https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-block
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/103285803>
Sammy Gill
Pull request: https://github.com/WebKit/WebKit/pull/8910
Sammy Gill
Pull request: https://github.com/WebKit/WebKit/pull/9145
EWS
Committed 260318@main (f679766e27a1): <https://commits.webkit.org/260318@main>
Reviewed commits have been landed. Closing PR #8910 and removing active labels.