Skip to content

[css-sizing] max-content size of percentage-sized replaced elements #1722

Closed
@fantasai

Description

@fantasai

We recently resolved that the max-content size of replaced elements with percentage size/max-size and an intrinsic aspect ratio is calculated from 300x150 and the aspect ratio. The upside is that we have a definition that isn't zero. The downside is that 300x150 is rarely a useful size, and isn't customizable.

So I was just thinking, what if we try using the min-width/min-height instead (where possible, i.e. not when calculating the min-width/min-height value itself)? If either of them is not auto, use that plus the aspect ratio to calculate the min-content size, otherwise fall back to 300x150.

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