descriptor
@font feature values/font display — CSS reference
Draft per-family font display policy inside @font-feature-values, distinct from the font-display descriptor in @font-face. In the tested browser the declaration is not retained. Use per-face font-display declarations as the established fallback, where authoring the face.
Formal Syntax & Structure
css syntaxcss
@font-feature-values Demo { font-display: swap; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>@font-feature-values/font-display</title><style>body{margin:8px;font:16px/20px sans-serif;color:black;background:white}@font-feature-values Demo { font-display: swap; @styleset { special: 1; } } @font-face { font-family: Demo; src: local("Arial"); font-display:swap; }</style><body><p id="a">Example text</p></body></html>