CKTIS / CSS
font-feature-settings — low-level OpenType feature control
font-feature-settings controls OpenType features using tags and values. It mainly serves settings unavailable through higher-level properties; the visual effect depends on the font.
Version: CSS modules; structured CSSWG indexes reconciled with pinned MDN BCD; Chromium 152 scope gate, per-example verification still required
Syntax
font-feature-settings: normal | <feature-tag-value>#;
<feature-tag-value> = <opentype-tag> [ <integer [0,∞]> | on | off ]?
<opentype-tag> = <string>font-feature-settings controls OpenType glyph selection and positioning. The property is inherited, and its initial value normal introduces no changes of its own — it does not disable all default font features.
The list is comma-separated. Each tag is a case-sensitive string of exactly four ASCII characters in U+0020–U+007E. An omitted value and on mean 1; off means 0. Nonnegative integers are allowed: 0 disables the feature, while larger values can select a font-dependent alternative.
Prefer font-variant-* or font-kerning when they expose the setting you need. font-feature-settings can override their corresponding features. A new declaration replaces the entire list rather than extending it; for a repeated tag, the last value wins.
An unsupported feature is ignored and does not trigger font fallback. The example requests "sinf" 1 and displays the computed value without guaranteeing a change in the appearance of H2O.
Examples
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenType feature settings</title>
<style>
#sample { font-feature-settings: "sinf" 1; }
</style>
</head>
<body>
<p id="sample">H2O</p>
<p>The declaration enables the OpenType scientific-inferiors feature. Its visual effect depends on the font.</p>
<script>
const sample = document.getElementById('sample');
console.log(getComputedStyle(sample).fontFeatureSettings);
</script>
</body>
</html>Result
"sinf"
The displayed code and declared result were verified in an isolated environment using the method recorded in the verification evidence for this exact version.