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 Rendering | Assignee: | 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 | ||
Sammy Gill
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
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/105731498>
Sammy Gill
Pull request: https://github.com/WebKit/WebKit/pull/10618
Sammy Gill
Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/38752