<cap>

Relative unit based on the height of capital letters. 1cap = cap height of the element's font.

Quick example

h1 { font-size: 2cap; }

<cap> Browser Support

Widely availableSince 202352% global usage

This feature is well established and works across many devices and browser versions. It has been available across browsers since 2023.

Safe to use without fallbacks.

118+
97+
17.2+
118+
ESC