CSSFontPaletteValuesRule

The CSSFontPaletteValuesRule interface represents an @font-palette-values at-rule.

MDN Reference

Properties

Link copied to clipboard
open external val basePalette: String

The read-only basePalette property of the CSSFontPaletteValuesRule interface indicates the base palette associated with the rule.

Link copied to clipboard
open external var cssText: String

The cssText property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.

Link copied to clipboard
open external val fontFamily: String

The read-only fontFamily property of the CSSFontPaletteValuesRule interface lists the font families the rule can be applied to. The font families must be named families; generic families like courier are not valid.

Link copied to clipboard
open external val name: String

The read-only name property of the CSSFontPaletteValuesRule interface represents the name identifying the associated @font-palette-values at-rule. A valid name always starts with two dashes, such as --Alternate.

Link copied to clipboard
open external val overrideColors: String

The read-only overrideColors property of the CSSFontPaletteValuesRule interface is a string containing a list of color index and color pair that are to be used instead. It is specified in the same format as the corresponding override-colors descriptor.

Link copied to clipboard
open external val parentRule: CSSRule?

The parentRule read-only property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.

Link copied to clipboard
open external val parentStyleSheet: CSSStyleSheet?

The parentStyleSheet read-only property of the CSSRule interface returns the StyleSheet object in which the current rule is defined.