CssNamespaceRule Class

https://drafts.csswg.org/cssom/#the-cssnamespacerule-interface

public sealed class CssNamespaceRule : CssRule
Inheritance
CssRule CssNamespaceRule

Properties

NameDescription
NamespaceUriGets the namespace URI of the rule.
PrefixGets the namespace prefix of the rule, or an empty string for the default namespace.
TypeGets the legacy numeric type of the rule: CssRule.NamespaceRule for @namespace rules.

NamespaceUri

CSSRules.cs

Gets the namespace URI of the rule.

public string NamespaceUri { get; }

Gets the namespace prefix of the rule, or an empty string for the default namespace.

public string Prefix { get; }

Gets the legacy numeric type of the rule: CssRule.NamespaceRule for @namespace rules.

public override ushort Type { get; }

Property value

ushort