Skip to content

[css-grid-3][masonry] integration of alignment and spanning items #5902

@hunboy

Description

@hunboy

Currently, when we have a masonry layout with justify-tracks in dense mode, the elements overlap the hanging span-ed element. In ideal case this should apply the hanging element as well during justifying.
This affected with these values: center, end, left, right, space-between, space-around, space-evenly.
it works well with normal and start values.
Clarify this issue and honour hanging elements as well during justifying.

In the testcase the "2" element is the hanging one.

default case:
https://jsfiddle.net/utasir/mnuds6vz/1/

good for some reasons:
masonry-start

overlaps:
masonry-center

overlaps:
masonry-end

With this special testcase should be start<->center<->end, because width: max-content defined. But currently not. I didnot find any explanations for the span elements in the spec.

If dense is not defined, this issue still happens, but in my opinion that should be a different ticket

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions