Skip to content

[css-flexbox-1] flex-basis: max-content + aspect ratio should use aspect ratio same as flex-basis: content #4226

Closed
@tabatkins

Description

@tabatkins

Right now the flex base size rules have a special branch for an item with an intrinsic aspect ratio, a flex-basis of content, and a definite cross-size, to ensure that the item maintains its aspect ratio. These rules should also be invoked for other content-based sizes for the same reason.

The rule is a bit different from falling down into the generic layout case (step 3.E) because 3.E ends up invoking float sizing for such items, and the float sizing rules directly inspect the value of 'width'/'height', rather than using the more generic notion of "a definite width/height", and so they don't see that the cross size of the item has been fixed by Flexbox's special rules on when a size is definite.

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