Class CSSFunctionDeclarations
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
NOTE
ExperimentalCSSFunctionDeclarations 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.
Constructors
CSSFunctionDeclarations()
public CSSFunctionDeclarations()
Properties
Style
NOTE
Experimentalstyle 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
styleproperty itself is read-only in the sense that you can't replace theCSSFunctionDescriptorsobject, you can still assign to thestyleproperty directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify theCSSFunctionDescriptorsobject using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.