at-rule
@ornaments — CSS reference
Selects an ornament glyph variant. The nested rule associates an author-friendly name with OpenType feature indexes (ornm). The chosen font must actually contain those features. Demo is an illustrative family name with a serif fallback; glyph substitution is not assumed.
Formal Syntax & Structure
css syntaxcss
@font-feature-values Demo { @ornaments { special: 1; } }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>@ornaments</title><style>body{margin:8px;font:16px/20px sans-serif;color:black;background:white}@font-feature-values Demo { @ornaments { special: 1; } } #a{font-family:Demo,serif;font-variant-alternates:ornaments(special)}</style><body><p id="a">Example text</p></body></html>