Skip to content

[css-values] cap-height unit? #660

@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

Cap height: 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 height through other means (plus a lot of manual config adjustment). When combined with ex (and a speculative baseline position), we also start to build up a very useful picture of a font's vertical metrics.

The best measure of this is usually the height of a capital H in any font, but could likely also fall back to I or X.

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