CKTIS / CSS
font-optical-sizing — optical type adjustment
font-optical-sizing controls adjustment of glyph shapes to text size when the font supplies suitable optical variants.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
font-optical-sizing: auto | none;font-optical-sizing does not replace font-size: it controls optical variants of glyph shapes. The initial auto permits browser selection; none disables automatic adjustment. The property is inherited and animates discretely.
The font must supply suitable variants, typically through opsz; browsers must not synthesize them. Selection considers font-size, but may consider other factors. Explicit font-variation-settings: "opsz" 24 overrides automatic selection for that axis.
The example checks computed keywords, not glyph appearance. Without a suitable font, both lines may look identical.
Examples
<!doctype html>
<meta charset="utf-8">
<title>font-optical-sizing</title>
<style>
.sample { font-size: 32px; font-optical-sizing: auto; }
.disabled { font-optical-sizing: none; }
</style>
<p id="automatic" class="sample">Optical sizing</p>
<p id="disabled" class="sample disabled">Optical sizing</p>
<pre id="result"></pre>
<script>
const values = ['automatic', 'disabled'].map(id =>
getComputedStyle(document.getElementById(id))
.getPropertyValue('font-optical-sizing')
);
document.getElementById('result').textContent = values.join('\n');
</script>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.