property

font-variant-alternates — CSS reference

Requests alternate glyph forms, including named sets defined by @font-feature-values. Initial normal; inherited. An alternate name is family-specific and does not guarantee the font contains the glyph feature.

Formal Syntax & Structure

css syntaxcss
normal | historical-forms || stylistic(<feature-value-name>) || styleset(<feature-value-name>#) || character-variant(<feature-value-name>#) || swash(<feature-value-name>) || ornaments(<feature-value-name>) || annotation(<feature-value-name>)

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS font lab</title><style>body {margin:0} .sample {background:#dcebe9;color:#182e32}
#a{font-variant-alternates:historical-forms}</style><body><p id="a">Office 012345 — typography</p><p id="b" lang="fa" dir="rtl">سلام دنیا</p></body></html>
CSS Reference