@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="CSSStyleSheet")
public class CSSStyleSheet
extends StyleSheet
disabled| Constructor and Description |
|---|
CSSStyleSheet() |
CSSStyleSheet(CSSStyleSheetInit options) |
| 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) |
Promise<CSSStyleSheet> |
replace(java.lang.String text) |
void |
replaceSync(java.lang.String text) |
CSSRuleList |
rules() |
href, media, ownerNode, parentStyleSheet, title, typeassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, is, isExtensible, isFrozen, isSealed, keys, preventExtensions, seal, setPrototypeOf, valueOf_, valuespublic CSSStyleSheet(@Nonnull
CSSStyleSheetInit options)
public CSSStyleSheet()
@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)
@Nonnull public Promise<CSSStyleSheet> replace(@Nonnull java.lang.String text)
public void replaceSync(@Nonnull
java.lang.String text)
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()