Table of Contents

Class CSSFontPaletteValuesRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

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

[Value("CSSFontPaletteValuesRule")]
public class CSSFontPaletteValuesRule : CSSRule
Inheritance
CSSFontPaletteValuesRule
Inherited Members

Remarks

Constructors

CSSFontPaletteValuesRule()

public CSSFontPaletteValuesRule()

Properties

BasePalette

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

[Value("basePalette")]
public string BasePalette { get; }

Property Value

string

A string that can be one of the following color values:

Remarks

FontFamily

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.

[Value("fontFamily")]
public string FontFamily { get; }

Property Value

string

A string containing a space-separated list of the font families on which the rule can be applied

Remarks

Name

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

[Value("name")]
public string Name { get; }

Property Value

string

A string beginning with two dashes.

Remarks

OverrideColors

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 {{cssxref("@font-palette-values/override-colors", "override-colors")}} descriptor.

[Value("overrideColors")]
public string OverrideColors { get; }

Property Value

string

A string containing a comma-separated list of color index and color pair

Remarks