CssPositionTryRule Class

https://drafts.csswg.org/css-anchor-position-1/#om-position-try: a @position-try rule, which defines a position option (https://drafts.csswg.org/css-anchor-position-1/#fallback-rule) with a name, applied to the absolutely positioned boxes that list it in position-try-fallbacks.

public sealed class CssPositionTryRule : CssRule
Inheritance
CssRule CssPositionTryRule

Properties

NameDescription
NameGets the name declared in the prelude of the rule (a <dashed-ident>, serialized as an identifier).
StyleGets the declarations of the rule (the accepted @position-try properties, in the specified order).

Gets the name declared in the prelude of the rule (a <dashed-ident>, serialized as an identifier).

public string Name { get; }

Gets the declarations of the rule (the accepted @position-try properties, in the specified order).

public CssPositionTryDescriptors Style { get; }