Bug 249210

Summary: [margin-trim] Implement margin trim for grid containers
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: Layout and RenderingAssignee: 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   

Description Sammy Gill 2022-12-12 22:31:59 PST
For grid containers specifically, margin-trim discards the corresponding margin of each grid item in the grid track adjacent to the relevant box edge.

This process ignores any collapsed grid tracks. It does not otherwise ignore any empty grid tracks.

https://w3c.github.io/csswg-drafts/css-box-4/#margin-trim-grid
Comment 1 Radar WebKit Bug Importer 2022-12-12 22:32:23 PST
<rdar://problem/103285873>
Comment 2 Sammy Gill 2023-01-04 16:42:37 PST
Pull request: https://github.com/WebKit/WebKit/pull/8220
Comment 3 EWS 2023-01-06 17:56:21 PST
Committed 258587@main (e8f3117677da): <https://commits.webkit.org/258587@main>

Reviewed commits have been landed. Closing PR #8220 and removing active labels.