CSS API
insertCssRule
Inserts a new CSS rule into a stylesheet.
tilepieces.core.insertCssRule(stylesheet, cssText, index);
Parameters
- stylesheet
- A CSSStyleSheet.
- cssText
- A DOMString
- index
- A positive integer less than or equal to
stylesheet.cssRules.length
, representing the newly inserted rule's position inCSSStyleSheet.cssRules
. The default isstylesheet.cssRules.length
.
Return Value
None.