Bug 252672 - [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
Summary: [rhythmic-sizing] Add half of block-step-size (rounded up) space to each bloc...
Status: NEW
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: 252357
  Show dependency treegraph
 
Reported: 2023-02-21 09:57 PST by Sammy Gill
Modified: 2023-03-06 09:58 PST (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-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