
public class JsCSSRule extends JsElementalMixinBase implements CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE, WEBKIT_KEYFRAME_RULE, WEBKIT_KEYFRAMES_RULESVG_ZOOMANDPAN_DISABLE, SVG_ZOOMANDPAN_MAGNIFY, SVG_ZOOMANDPAN_UNKNOWN| Modifier | Constructor and Description |
|---|---|
protected |
JsCSSRule() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCssText()
Returns the textual representation of the rule, e.g.
|
JsCSSRule |
getParentRule()
Returns the containing rule, otherwise
null. |
JsCSSStyleSheet |
getParentStyleSheet()
Returns the
CSSStyleSheet object for the style sheet that contains this rule |
int |
getType()
One of the Type constants indicating the type of CSS rule.
|
void |
setCssText(String param_cssText) |
addEventListener, addEventListener, beginElement, beginElementAt, dispatchEvent, endElement, endElementAt, getAnimatedClassName, getAnimatedHeight, getAnimatedHref, getAnimatedResult, getAnimatedTransform, getAnimatedWidth, getAnimatedX, getAnimatedY, getBBox, getChildElementCount, getCTM, getExternalResourcesRequired, getFarthestViewportElement, getFirstElementChild, getLastElementChild, getNearestViewportElement, getNextElementSibling, getPresentationAttribute, getPreserveAspectRatio, getPreviousElementSibling, getRequiredExtensions, getRequiredFeatures, getScreenCTM, getSvgStyle, getSystemLanguage, getTransformToElement, getViewBox, getXmllang, getXmlspace, getZoomAndPan, hasExtension, querySelector, querySelectorAll, removeEventListener, removeEventListener, setXmllang, setXmlspace, setZoomAndPanat, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAtcast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toStringintAt, lengthnumberAtpublic final String getCssText()
CSSRule"h1,h2 { font-size: 16pt }"getCssText in interface CSSRulepublic final void setCssText(String param_cssText)
setCssText in interface CSSRulepublic final JsCSSRule getParentRule()
CSSRulenull. E.g. if this rule is a style rule inside an @media block, the parent rule would be that CSSMediaRule.getParentRule in interface CSSRulepublic final JsCSSStyleSheet getParentStyleSheet()
CSSRuleCSSStyleSheet object for the style sheet that contains this rulegetParentStyleSheet in interface CSSRulepublic final int getType()
CSSRuleCopyright © 2016. All rights reserved.