concept

Descriptor — CSS reference

A descriptor defines an aspect of the rule in which it appears; it is not necessarily an ordinary property and does not cascade on arbitrary elements. For example font-display is a descriptor in @font-face. The example reads the rule from CSSOM without claiming that a local font is installed.

Formal Syntax & Structure

css syntaxcss
@font-face { font-family: Demo; src: local("Arial"); font-display: swap; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>descriptor</title><style>body{margin:8px;font:16px/1.5 sans-serif;color:black;background:white}#a{box-sizing:border-box}@font-face{font-family:Demo;src:local("Arial");font-display:swap}</style><body><div id="a">Example</div></body></html>
CSS Reference