Knowledge baseExam Center
ENEnglish
Choose language13

CKTIS / CSS

font-synthesis-small-caps — controlling small-cap synthesis

The font-synthesis-small-caps property allows or forbids synthetic small caps without disabling genuine small-cap glyphs supplied by a font.

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

Syntax

font-synthesis-small-caps: auto | none;

font-synthesis-small-caps controls small-cap synthesis when a font family lacks suitable faces. auto permits synthesis; none forbids it. The initial value is auto, and the property is inherited.

It does not request small caps itself: use font-variant-caps: small-caps. Setting none does not block genuine small caps available in the font.

This is a longhand of font-synthesis; a later shorthand can reset it. The example compares both values. Appearance depends on the font, so checking computed values does not replace inspecting rendering.

Examples

<!doctype html>
<html lang="en">
<meta charset="utf-8">
<title>font-synthesis-small-caps</title>
<style>
  .sample {
    font-family: serif;
    font-size: 28px;
    font-variant-caps: small-caps;
    font-synthesis-small-caps: auto;
  }
  .blocked { font-synthesis-small-caps: none; }
</style>
<p class="sample">Small caps: Hello world</p>
<p class="sample blocked">Small caps: Hello world</p>
<pre id="result"></pre>
<script>
  const values = [...document.querySelectorAll('.sample')].map(
    element => getComputedStyle(element)
      .getPropertyValue('font-synthesis-small-caps').trim()
  );
  document.getElementById('result').textContent = values.join('\n');
</script>
</html>

Result

auto
none

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