CssPropertyRule Class

https://drafts.css-houdini.org/css-properties-values-api/#the-css-property-rule-interface

public sealed class CssPropertyRule : CssRule
Inheritance
CssRule CssPropertyRule

Properties

NameDescription
InheritsGets a value indicating whether the registered custom property inherits.
InitialValueGets the initial value of the registered custom property, or null when the rule has none.
NameGets the name of the registered custom property, including the leading --.
SyntaxGets the syntax string of the registered custom property.

Inherits

CSSRules.cs

Gets a value indicating whether the registered custom property inherits.

public bool Inherits { get; }

InitialValue

CSSRules.cs

Gets the initial value of the registered custom property, or null when the rule has none.

public string? InitialValue { get; }

Gets the name of the registered custom property, including the leading --.

public string Name { get; }

Gets the syntax string of the registered custom property.

public string Syntax { get; }