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
-CSSPositionTryDescriptors
-@position-try
-position-try-fallbacks
-CSS anchor positioning module
-Using CSS anchor positioning
-Handling overflow: try options and conditional hiding
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
-CSSPositionTryDescriptors
-@position-try
-position-try-fallbacks
-CSS anchor positioning module
-Using CSS anchor positioning
-Handling overflow: try options and conditional hiding
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
styleproperty itself is read-only in the sense that you can't replace theCSSPositionTryDescriptorsobject, you can still assign to thestyleproperty directly, which is equivalent to assigning to its CSSStyleDeclarationcssText property. You can also modify theCSSPositionTryDescriptorsobject using the CSSStyleDeclarationsetProperty and CSSStyleDeclarationremoveProperty methods.