CSSPageRule

CSSPageRule represents a single CSS @page rule.

MDN Reference

Properties

Link copied to clipboard

The cssRules property of the a collection of CSSRule objects.

Link copied to clipboard

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

Link copied to clipboard

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

Link copied to clipboard

The parentStyleSheet property of the the current rule is defined.

Link copied to clipboard

The selectorText property of the CSSPageRule interface gets and sets the selectors associated with the CSSPageRule.

Link copied to clipboard

The style read-only property of the CSSPageRule interface returns a CSSPageDescriptors object.

Functions

Link copied to clipboard
fun deleteRule(index: Int)

The deleteRule() method of the rules.

Link copied to clipboard
fun insertRule(rule: String, index: Int = definedExternally): Int

The insertRule() method of the ``js-nolint insertRule(rule) insertRule(rule, index) `` - rule - : A string - index MISSING: optional_inline - : An optional index at which to insert the rule; defaults to 0.