Bug 261523

Summary: [css-grid] RenderGrid::getBaselineChild should look at both the alignment type of the grid item and its alignment context
Product: WebKit Reporter: Sammy Gill <sgill26>
Component: Layout and RenderingAssignee: Nobody <webkit-unassigned>
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   
Bug Depends on:    
Bug Blocks: 260573    

Description Sammy Gill 2023-09-13 11:41:00 PDT
Currently getBaselineChild only looks at the type of alignment for a grid item when determining if it should use it for the grid's baseline. However, it should also be checking the alignment context in which the item is in. For example, a last baseline aligned grid item that spans multiple rows may participate in baseline alignment in the last track is spans into as opposed to the first track it gets placed in
Comment 1 Radar WebKit Bug Importer 2023-09-13 11:41:17 PDT
<rdar://problem/115441833>
Comment 2 Sammy Gill 2023-12-12 14:10:17 PST
https://github.com/WebKit/WebKit/pull/17746