at-rule

@annotation — CSS reference

Selects an alternate annotation form such as a circled glyph. The nested rule associates an author-friendly name with OpenType feature indexes (nalt). 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 { @annotation { special: 1; } }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>@annotation</title><style>body{margin:8px;font:16px/20px sans-serif;color:black;background:white}@font-feature-values Demo { @annotation { special: 1; } } #a{font-family:Demo,serif;font-variant-alternates:annotation(special)}</style><body><p id="a">Example text</p></body></html>
CSS Reference