<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

Newly available Since 2024 52% global usage

Since 2024 this feature works across the latest devices and browser versions. This feature might not work in older devices or browsers.

Works in all modern browsers. May need a fallback for older browsers.

ESC