@Generated(value="org.realityforge.webtack") @JsType(isNative=true, namespace="<global>", name="CSSStyleSheet") public class CSSStyleSheet extends StyleSheet
disabled
Modifier | Constructor and Description |
---|---|
protected |
CSSStyleSheet() |
Modifier and Type | Method and Description |
---|---|
int |
addRule() |
int |
addRule(java.lang.String selector) |
int |
addRule(java.lang.String selector,
java.lang.String style) |
int |
addRule(java.lang.String selector,
java.lang.String style,
int index) |
CSSRuleList |
cssRules()
The read-only CSSStyleSheet property cssRules returns a live CSSRuleList which provides a real-time, up-to-date list of every CSS rule which comprises the stylesheet.
|
void |
deleteRule(int index)
The CSSStyleSheet method deleteRule() removes a rule from the stylesheet object.
|
int |
insertRule(java.lang.String rule)
The CSSStyleSheet.insertRule() method inserts a new CSS rule into the current style sheet, with some restrictions.
|
int |
insertRule(java.lang.String rule,
int index)
The CSSStyleSheet.insertRule() method inserts a new CSS rule into the current style sheet, with some restrictions.
|
CSSRule |
ownerRule()
The read-only CSSStyleSheet property ownerRule returns the CSSImportRule corresponding to the @import at-rule which imported the stylesheet into the document.
|
void |
removeRule() |
void |
removeRule(int index) |
CSSRuleList |
rules() |
href, media, ownerNode, parentStyleSheet, title, type
@JsProperty(name="cssRules") @Nonnull public CSSRuleList cssRules()
@JsProperty(name="ownerRule") @Nullable public CSSRule ownerRule()
@JsProperty(name="rules") @Nonnull public CSSRuleList rules()
public void deleteRule(int index)
public int insertRule(@Nonnull java.lang.String rule, int index)
public int insertRule(@Nonnull java.lang.String rule)
public int addRule(@Nonnull java.lang.String selector, @Nonnull java.lang.String style, int index)
public int addRule(@Nonnull java.lang.String selector, @Nonnull java.lang.String style)
public int addRule(@Nonnull java.lang.String selector)
public int addRule()
public void removeRule(int index)
public void removeRule()