Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

font-variant-caps — capital variants

font-variant-caps selects small capitals and other letter variants within a typeface. Its appearance depends on available glyphs and possible synthesis.

Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required

Syntax

font-variant-caps: normal | small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps;

font-variant-caps controls glyph variants without changing source text. It is inherited; its initial value is normal.

small-caps uses small capitals for lowercase letters; all-small-caps includes uppercase letters. petite-caps and all-petite-caps select smaller capitals for the corresponding letter groups. unicase combines small capitals replacing uppercase letters with normal lowercase letters; titling-caps selects titling forms.

Missing petite variants fall back to their small-caps equivalents. Small capitals can be synthesized. Font-unsupported titling-caps has no visible effect. Choose one value, not a list.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>font-variant-caps</title>
<style>
  p { font-family: serif; font-size: 32px; }
  .caps { font-variant-caps: small-caps; }
</style>
<p>Normal: Abc</p>
<p class="caps">Small caps: Abc</p>
</html>

Result

Normal: Abc
Small caps: Abc

The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.

Sources