injectStyles(styles: string, destination?: Element, prepend?: boolean, id?: string): Node
Injects styles into the destination element, or the document.head if no destination is provided.
Parameters
styles: string
The css text to injext.
destination?: Element
The destination element to inject the css text into. If not specified it will default to the document.head.
prepend?: boolean
Indicates whether or not the styles should be prepended to the destination. By default they are appended.
id?: string
The existing style element's id to replace the contents for
Returns
The Style node that was created.