Bug 248291 - [css-grid] Try to short circuit initial item placement during masonry layout
Summary: [css-grid] Try to short circuit initial item placement during masonry layout
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: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-11-23 15:27 PST by Sammy Gill
Modified: 2022-11-23 15:27 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 2022-11-23 15:27:15 PST
Currently whenever we have a masonry grid we perform two iterations of item placement. The first item placement is done as if we had grid-template-rows (or columns) set to none when the masonry axis is rows (or columns). This is done to figure out which items are placed at the first implicit line for masonry layout. The second iteration is the item placement according to the masonry layout algorithm. We should be able to short circuit the initial placement once we have figured out all of the items that are placed at the first initial line.
Comment 1 Radar WebKit Bug Importer 2022-11-23 15:27:58 PST
<rdar://problem/102634529>