FontFace: variant property
Note: This feature is available in Web Workers.
Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
The variant
property of the
FontFace
interface programmatically retrieves or sets font variant
values.
Value
A string containing a descriptor as it would be defined in a style
sheet's @font-face
rule.
Specifications
No specification found
No specification data found for api.FontFace.variant
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
variant |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Non-standard. Check cross-browser support before using.