Bug 251154 - [margin-trim] Add margin-trim support for floats in IFC line layout
Summary: [margin-trim] Add margin-trim support for floats in IFC line layout
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Sammy Gill
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2023-01-25 09:26 PST by Sammy Gill
Modified: 2023-10-17 09:59 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sammy Gill 2023-01-25 09:26:58 PST
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
Comment 1 Radar WebKit Bug Importer 2023-01-25 09:27:49 PST
<rdar://problem/104650698>
Comment 2 Sammy Gill 2023-01-25 13:22:50 PST
Pull request: https://github.com/WebKit/WebKit/pull/9145
Comment 3 Sammy Gill 2023-10-17 09:59:05 PDT
This part of the spec was removed by the CSSWG and will potentially be explored later in a future version of the spec. As a result, this issue no longer applies.