CSS API
setCurrentStyleSheet
Set a node containing css (style tag or link tag with href attribute) as the current stylesheet.
tilepieces.core.setCurrentStyleSheet(element);
Parameters
- element
- A DOM element. This must be a style tag or link tag with the href attribute and it must already exist in the document we are working on.
Return Value
A Promise that is resolved if the stylesheet has been successfully added to the document and its rules are accessible to the application.