Skip to content

[css-values] baseline-position unit? #661

@tbredin

Description

@tbredin

I've just found out about the ch and ex units described here:
https://www.w3.org/TR/css3-values/#relative-lengths

Baseline position: (perhaps in a format like top: 1bpos for example) would give us information on the vertical position of the baseline relative to the top of the box model (without padding?) for a given font. This position varies a lot from one font to another

This is something that could become extremely useful in vertical rhythm projects such as Sassline and MegaType, which go to great length to attempt to find this position through other means. When combined with ex (and a speculative cap height), we also start to build up a very useful picture of a font's vertical metrics.

Is this something that might be considered in future?
Further reading on some existing issues with typographic metrics on the web

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