Skip to content

Provide options for flexible line height, fitting text vertically to the container #5515

@BennyHinrichs

Description

@BennyHinrichs

I couldn't find a short name for the spec, so let me know if there is one.

This change would be useful both for contracting things so they don't exceed a parent height and spreading them out to fit the parent height. I don't know what the best way to go about doing this would be. Here are some ideas:

  • Add either auto or flex keyword to line-height that will cause the text to vertically fit the container it's in, whether it require a contraction or expansion.

  • Make minmax() accessible for line-height.

  • Implement a function similar to fit-content().

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