cssFile

fun cssFile(path: String, watch: Boolean = true): CssFile(source)

Adds the style sheets of the CSS file path to the document, after its style sheets; when watch is set, they are read again when the file changes, a few times per second while frames are drawn, and the elements are styled again. Rules that are not valid are left out, with a warning.