CSSStyleSheet.insertRule

GPTKB entity

Statements (28)
Predicate Object
gptkbp:instanceOf method
gptkbp:affects live styles of a document
gptkbp:availableOn gptkb:Web_APIs
gptkbp:compatibleWith IE8 and below
gptkbp:definedIn gptkb:CSSStyleSheet_interface
gptkbp:firstParameter rule (string)
gptkbp:hasSyntax insertRule(rule, index)
https://www.w3.org/2000/01/rdf-schema#label CSSStyleSheet.insertRule
gptkbp:introducedIn gptkb:DOM_Level_2_Style
gptkbp:partOf gptkb:CSS_Object_Model_(CSSOM)
gptkbp:result integer (index of inserted rule)
gptkbp:secondParameter index (integer)
gptkbp:seeAlso gptkb:CSSStyleSheet.deleteRule
CSSStyleSheet.cssRules
CSSStyleSheet.rules
gptkbp:supportedBy gptkb:opera
gptkb:Edge
gptkb:Safari
gptkb:Firefox
gptkb:Chrome
gptkbp:throws gptkb:DOMException
HierarchyRequestError
IndexSizeError
NoModificationAllowedError
SyntaxError
gptkbp:usedFor inserting a new CSS rule into a stylesheet
gptkbp:bfsParent gptkb:CSSOM_API
gptkbp:bfsLayer 7