A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/CSSNamespaceRule below:

CSSNamespaceRule - Web APIs | MDN

CSSNamespaceRule

Baseline Widely available

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

CSSRule CSSNamespaceRule Instance properties

Inherits properties from its ancestor CSSRule.

CSSNamespaceRule.namespaceURI

Returns a string containing the text of the URI of the given namespace.

CSSNamespaceRule.prefix

Returns a string with the name of the prefix associated to this namespace. If there is no such prefix, returns an empty string.

Instance methods

Inherits methods from its ancestor CSSRule.

Examples

The stylesheet includes a namespace as the only rule. Therefore the first CSSRule returned will be a CSSNamespaceRule.

@namespace url("http://www.w3.org/1999/xhtml");
const myRules = document.styleSheets[0].cssRules;
console.log(myRules[0]); // A CSSNamespaceRule
Specifications Browser compatibility

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4