Skip to content

[css-text] allow line-height to accept aspect-ratio style values #8129

@scottkellum

Description

@scottkellum

Unitless line-height is generally accepted as the best type of value for line-height, however this can sometimes be confusing for people to calculate from pixel-based mockups.

Proposal

Allow line-height to accept ratio formatted values similar to aspect-ratio. This would let authors easily convert pixel based values to numbers without the need for calc. So if a mockup has a font size of 16px and a line height of 20px, the CSS author would be able to write line-height: 20 / 16 instead of line-height: calc(20 / 16) or doing the math to write line-height: 1.25.

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