Table of Contents

Class CSSVariableReferenceValue

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSVariableReferenceValue interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. This object functionality is sometimes called a "CSS variable" and serves the same purpose as the var function. The custom name must begin with two dashes.

[Value("CSSVariableReferenceValue")]
public class CSSVariableReferenceValue
Inheritance
CSSVariableReferenceValue
Inherited Members

Remarks

Constructors

CSSVariableReferenceValue()

public CSSVariableReferenceValue()

CSSVariableReferenceValue(string, CSSUnparsedValue?)

Creates a new 'CSSVariableReferenceValue'.

public CSSVariableReferenceValue(string variable, CSSUnparsedValue? fallback = null)

Parameters

variable string
fallback CSSUnparsedValue

Remarks

Properties

Fallback

The fallback read-only property of the
CSSVariableReferenceValue interface returns the custom property fallback value of the CSSVariableReferenceValue.

[Value("fallback")]
public CSSUnparsedValue? Fallback { get; }

Property Value

CSSUnparsedValue

A 'CSSUnparsedValue'.

Remarks

Variable

The variable property of the
CSSVariableReferenceValue interface returns the custom property name of the
CSSVariableReferenceValue.

[Value("variable")]
public string Variable { get; set; }

Property Value

string

A string beginning with -- (that is, a custom property name).

Remarks