Visitar URL original
[css-grid] auto minimums under a min/max-content constraint aren't floored at zero · Issue #3570 · w3c/csswg-drafts · GitHub
Skip to content

[css-grid] auto minimums under a min/max-content constraint aren't floored at zero #3570

Closed

Description

@Loirooriol

In https://drafts.csswg.org/css-grid/#algo-single-span-items, the base size is always floored at zero:

set its base size to the maximum of the items’ min-content contributions, floored at zero.
set its base size to the maximum of the items’ max-content contributions, floored at zero.
set its base size to the maximum of its items’ minimum contributions, floored at zero.

except in this case:

set the track’s base size to the maximum of its items’ min/max-content contributions, respectively, each limited by the max track sizing function if that is fixed and ultimately floored by its minimum contribution.

Not sure if the flooring is needed (can minimum contributions be negative?), but the inconsistency seems strange. Is it intentional?

Activity

  1. fantasai commented on Jan 29, 2019

    @fantasai
    Collaborator

    I noticed that while working on the edits for #3565 so it's fixed in a3091ab

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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