Skip to content

[css-grid-3][masonry] Should auto-placement cursor be updated after placing an explicitly-placed item? #13987

@celestepan

Description

@celestepan

In the spec, there is already an issue regarding whether or not we should update the auto-placement cursor after explicitly placing an item:
Link: https://drafts.csswg.org/css-grid-3/#grid-lanes-layout-algorithm
Image

Blink and Webkit are both updating the auto-placement cursor after the explicit placement:

<!DOCTYPE html>
<div style="display: grid-lanes; grid-template-columns: repeat(4, 50px); gap: 10px;">
 
<div style="background: pink; height: 40px; grid-column: 2;"> item 1 </div>
<div style="background: lightblue; height: 40px;">item 2 </div>
<div style="background: lightgreen; height: 40px;"> item 3 </div>
<div style="background: salmon; height: 40px;">item 4 </div>
 
</div>
Image

That behavior makes sense to me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions