Table of Contents

Class CSSPositionTryRule

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

The CSSPositionTryRule interface describes an object representing a @position-try at-rule.

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

Remarks

Constructors

CSSPositionTryRule()

public CSSPositionTryRule()

Properties

Name

The name read-only property of the CSSPositionTryRule interface represents the name of the position try fallback option specified by the _position-try at-rule's dashed-ident.

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

Property Value

string

A string.

Remarks

Style

The read-only style property of the CSSPositionTryRule interface contains a CSSPositionTryDescriptors object representing the descriptors available in the {{cssxref("@position-try")}} rule's body.

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

Property Value

CSSPositionTryDescriptors

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

Remarks