Skip to content

[css-grid] Sizing Grid Containers fails on floats #1734

Closed
@fantasai

Description

@fantasai

The spec says

A grid container is sized using the rules of the formatting context in which it participates:

  • As a block-level box in a block formatting context, it is sized like a block box that establishes a formatting context, with an auto inline size calculated as for in-flow block boxes.

This is fine for in-flow block boxes, but for floated boxes (or abspos) the grid container should shrinkwrap. I think perhaps it meant "non-replaced block boxes" here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions