Table of Contents

Class CSSPropertyRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSPropertyRule interface of the CSS Properties and Values API represents a single CSS @property rule.

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

Remarks

Constructors

CSSPropertyRule()

public CSSPropertyRule()

Properties

Inherits

The read-only inherits property of the CSSPropertyRule interface returns the inherit flag of the custom property registration represented by the {{cssxref("@property")}} rule, a boolean describing whether or not the property inherits by default.

[Value("inherits")]
public bool Inherits { get; }

Property Value

bool

A boolean.

Remarks

InitialValue

The read-only initialValue nullable property of the CSSPropertyRule interface returns the initial value of the custom property registration represented by the {{cssxref("@property")}} rule, controlling the property's initial value.

[Value("initialValue")]
public string? InitialValue { get; }

Property Value

string

A string which is a <declaration-value>.

Remarks

Name

The read-only name property of the CSSPropertyRule interface represents the property name, this being the serialization of the name given to the custom property in the {{cssxref("@property")}} rule's prelude.

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

Property Value

string

A string.

Remarks

Syntax

The read-only syntax property of the CSSPropertyRule interface returns the literal syntax of the custom property registration represented by the {{cssxref("@property")}} rule, controlling how the property's value is parsed at computed-value time.

[Value("syntax")]
public string Syntax { get; }

Property Value

string

A string.

Remarks