Bug 252672

Summary: [rhythmic-sizing] Add half of block-step-size (rounded up) space to each block margin for non-orthogonal in flow elements with display: block no margin collapsing
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: Layout and RenderingAssignee: Sammy Gill <sgill26>
Status: NEW ---    
Severity: Normal CC: bfulgham, simon.fraser, webkit-bug-importer, zalan
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://github.com/web-platform-tests/wpt/pull/38752
Bug Depends on:    
Bug Blocks: 252357    

Description Sammy Gill 2023-02-21 09:57:12 PST
https://drafts.csswg.org/css-rhythm/#block-step-size

This is the simplest case for block-step-size
1.) We compute the rounded (up) value for the margin box that the box should have
2.) Compute the difference: this is the amount of margin needed so that the box margin box size is equal to the computed value from 1
3.) Split the difference equally between the block start and block end margins

Later properties will influence this slightly
Comment 1 Radar WebKit Bug Importer 2023-02-21 09:57:36 PST
<rdar://problem/105731498>
Comment 2 Sammy Gill 2023-02-23 15:00:54 PST
Pull request: https://github.com/WebKit/WebKit/pull/10618
Comment 3 Sammy Gill 2023-02-28 13:55:33 PST
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/38752