Table of Contents

Class CSSNestedDeclarations

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSNestedDeclarations interface of the CSS Rule API is used to group nested CSSRules.

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

Remarks

The interface allows the CSS Object Model (CSSOM to mirror the structure of CSS documents with nested CSS rules, and ensure that rules are parsed and evaluated in the order that they are declared.

NOTE

Implementations that do not support this interface may parse nested rules in the wrong order.
See Browser compatibility for more information.

See also on MDN

Constructors

CSSNestedDeclarations()

public CSSNestedDeclarations()

Properties

Style

The read-only style property of the CSSNestedDeclarations interface represents the styles associated with the nested rules.

[Value("style")]
public CSSStyleProperties Style { get; }

Property Value

CSSStyleProperties

A CSSStyleProperties object.Although the style property itself is read-only in the sense that you can't replace the CSSStyleProperties object, you can still assign to the style property directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify the CSSStyleProperties object using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.

Remarks