Readonly
Static
add a new rule to the style sheet
internal rule name
css definition of the rule
setRule('xbody', "body { background-color: #ff0000; }" ); Copy
setRule('xbody', "body { background-color: #ff0000; }" );
Returns the computed value of a CSS custom property (CSS variable) from the document's root element.
variable name
let color = Component.getCss( ).getVar( 'button-color' ); Copy
let color = Component.getCss( ).getVar( 'button-color' );
add a new rule to the style sheet