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_RULE
SVG_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, setZoomAndPan
at, at, intAt, intAt, length, numberAt, numberAt, setAt, setAt, setAt, setAt, setAt, setAt
cast, createArray, createArray, createFunction, createObject, equals, hashCode, toSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
intAt, length
numberAt
public final String getCssText()
CSSRule
"h1,h2 { font-size: 16pt }"
getCssText
in interface CSSRule
public final void setCssText(String param_cssText)
setCssText
in interface CSSRule
public final JsCSSRule getParentRule()
CSSRule
null
. E.g. if this rule is a style rule inside an @media
block, the parent rule would be that CSSMediaRule
.getParentRule
in interface CSSRule
public final JsCSSStyleSheet getParentStyleSheet()
CSSRule
CSSStyleSheet
object for the style sheet that contains this rulegetParentStyleSheet
in interface CSSRule
public final int getType()
CSSRule
Copyright © 2018. All rights reserved.