CSS API

insertCssRule

Inserts a new CSS rule into a stylesheet.

tilepieces.core.insertCssRule(stylesheet, cssText, index);

Parameters

stylesheet
A CSSStyleSheet.
cssText
DOMString
index
A positive integer less than or equal to stylesheet.cssRules.length, representing the newly inserted rule's position in CSSStyleSheet.cssRules. The default is stylesheet.cssRules.length

Return Value

None.