StyleRule
Type class
Defines a class for a CSS rule.
Can be used to dynamically add CSS to the document.
Sources
This information about StyleRule is provided for reference only and is not available through exported packages and thus should not be imported or used on its own.
Inheritance
StyleRule extends DisposerClass.
StyleRule is not extended by any other symbol.
Properties
selectorType
stringA CSS selector text.
E.g.:
.myClass p
Methods
constructor(element:ShadowRoot|null,
selector:string,
styles:object,
nonce:string)Returns
StyleRuleConstructor.
setStyle(name:string,
value:string)Returns
voidSets a value for specific style attribute.
2 inherited items
dispose()Returns
voidInherited fromDisposerClassDisposes the object.
isDisposed()Returns
booleanInherited fromDisposerClassChecks if object is disposed.
Events
StyleRule does not have any events.