CSSNamespaceRule

The CSSNamespaceRule interface describes an object representing a single CSS @namespace at-rule.

MDN Reference

Properties

Link copied to clipboard
open external var cssText: String

The cssText property of the CSSRule interface returns the actual text of a CSSStyleSheet style-rule.

Link copied to clipboard
open external val namespaceURI: String

The read-only namespaceURI property of the CSSNamespaceRule returns a string containing the text of the URI of the given namespace.

Link copied to clipboard
open external val parentRule: CSSRule?

The parentRule read-only property of the CSSRule interface returns the containing rule of the current rule if this exists, or otherwise returns null.

Link copied to clipboard
open external val parentStyleSheet: CSSStyleSheet?

The parentStyleSheet read-only property of the CSSRule interface returns the StyleSheet object in which the current rule is defined.

Link copied to clipboard
open external val prefix: String

The read-only prefix property of the CSSNamespaceRule returns a string with the name of the prefix associated to this namespace. If there is no such prefix, it returns an empty string.