Table of Contents

Class CSSFunctionDeclarations

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll
NOTE
Experimental
The CSSFunctionDeclarations interface of the CSS Object Model represents a consecutive run of CSS declarations included within a @function body.
[Value("CSSFunctionDeclarations")]
public class CSSFunctionDeclarations : CSSRule
Inheritance
CSSFunctionDeclarations
Inherited Members

Remarks

This can include CSS custom properties, and the value of the results descriptor inside the _function body, but it doesn't include blocks such as @media at-rules that may be included. Such a block, included in the middle of a set of declarations, would cause the body contents to be broken up into separate CSSFunctionDeclarations objects, as seen in our Multiple CSSFunctionDeclarations demo.

-@function
-CSSFunctionRule
-CSSFunctionDescriptors

See also on MDN

Constructors

CSSFunctionDeclarations()

public CSSFunctionDeclarations()

Properties

Style

NOTE
Experimental
The read-only style property of the CSSFunctionDeclarations interface contains a CSSFunctionDescriptors object representing the descriptors available in the {{cssxref("@function")}} rule's body.
[Value("style")]
public CSSFunctionDescriptors Style { get; }

Property Value

CSSFunctionDescriptors

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

Remarks