monks/font_variant
The font-variant CSS shorthand property allows you to set all the font variants for a font.
You can also set the <font-variant-css2> values of font-variant defined in CSS Level 2.1, (that is, normal or small-caps), by using the font shorthand.
Values
pub const all_petite_caps: #(String, String)
all-petite-caps value of font-variant
pub const common_ligatures: #(String, String)
common-ligatures value of font-variant
pub const diagonal_fractions: #(String, String)
diagonal-fractions value of font-variant
pub const discretionary_ligatures: #(String, String)
discretionary-ligatures value of font-variant
pub const historical_forms: #(String, String)
historical-forms value of font-variant
pub const historical_ligatures: #(String, String)
historical-ligatures value of font-variant
pub const no_common_ligatures: #(String, String)
no-common-ligatures value of font-variant
pub const no_discretionary_ligatures: #(String, String)
no-discretionary-ligatures value of font-variant
pub const no_historical_ligatures: #(String, String)
no-historical-ligatures value of font-variant
pub const none: #(String, String)
- : Sets the value of the
font-variant-ligaturesasnoneand the values of the other longhand properties asnormal, their initial value.
pub const normal: #(String, String)
- : Specifies a normal font face. Each longhand property has an initial value of
normal.
pub const proportional_nums: #(String, String)
proportional-nums value of font-variant
pub const proportional_width: #(String, String)
proportional-width value of font-variant
pub const revert_layer: #(String, String)
pub const small_caps: #(String, String)
- : Specifies the keywords and functions related to the
font-variant-capslonghand property. Thesmall-capsvalue is the only non-normalfont variant valid within the {{cssxref(“font”)}} shorthand property.
pub const stacked_fractions: #(String, String)
stacked-fractions value of font-variant