Skip to content

[css-sizing] add fill(<length-percentage>) / rename stretch keyword for width/height? #5650

Closed
@fantasai

Description

@fantasai

Was reading some of the discussions on dialog styling, where one of the issues was trying to max-size something to fit the viewport minus margin/border/padding. Using calc() doesn't play with the cascade very well, but the stretch keyword (previously fill-available) does. However it only fills the containing block: if you want to fill to a different size, you can't.

I was wondering if we wanted to introduce a fill() function similar to fit-content() (and maybe rename stretch back to fill for consistency if it hasn't been implemented anywhere)?

That would allow things like max-height: fill(100vh) regardless of where you are in the document.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as RetractedWhen the person who raised the issue thinks that there's no issue after all.css-sizing-3Current Workcss-sizing-4

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions