public class ComputedCSSStyleDeclaration extends CSSStyleDeclaration
Window.getComputedStyle(Object, String),
Serialized Formorg.htmlunit.corejs.javascript.ScriptableObject.DescriptorInfo, org.htmlunit.corejs.javascript.ScriptableObject.KeyComparator, org.htmlunit.corejs.javascript.ScriptableObject.LambdaGetterFunction, org.htmlunit.corejs.javascript.ScriptableObject.LambdaSetterFunction| Modifier and Type | Field and Description |
|---|---|
static String |
TO_STRING_TAG
Symbol.toStringTag support.
|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONSTNOT_FOUND| Constructor and Description |
|---|
ComputedCSSStyleDeclaration()
Creates an instance.
|
ComputedCSSStyleDeclaration(Element element,
ComputedCssStyleDeclaration cssStyleDeclaration)
Creates an instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getBackgroundAttachment()
Gets the
backgroundAttachment style attribute. |
String |
getBackgroundColor()
Gets the
backgroundColor style attribute. |
String |
getBackgroundImage()
Gets the
backgroundImage style attribute. |
String |
getBackgroundPosition()
Gets the
backgroundPosition style attribute. |
String |
getBackgroundRepeat()
Gets the
backgroundRepeat style attribute. |
String |
getBlockSize()
Gets the
blockSize style attribute. |
String |
getBorderBottomColor()
Gets the
borderBottomColor style attribute. |
String |
getBorderBottomStyle()
Gets the
borderBottomStyle style attribute. |
String |
getBorderBottomWidth()
Gets the
borderBottomWidth style attribute. |
String |
getBorderLeftColor()
Gets the
borderLeftColor style attribute. |
String |
getBorderLeftStyle()
Gets the
borderLeftStyle style attribute. |
String |
getBorderLeftWidth()
Gets the
borderLeftWidth style attribute. |
String |
getBorderRightColor()
Gets the
borderRightColor style attribute. |
String |
getBorderRightStyle()
Gets the
borderRightStyle style attribute. |
String |
getBorderRightWidth()
Gets the
borderRightWidth style attribute. |
String |
getBorderTopColor()
Gets the
borderTopColor style attribute. |
String |
getBorderTopStyle()
Gets the
borderTopStyle style attribute. |
String |
getBorderTopWidth()
Gets the
borderTopWidth style attribute. |
String |
getBottom()
Gets the
bottom style attribute. |
String |
getColor()
Gets the
color style attribute. |
String |
getCssFloat()
Gets the
cssFloat style attribute. |
protected ComputedCssStyleDeclaration |
getCssStyleDeclaration() |
String |
getDisplay()
Gets the
display style attribute. |
String |
getFont()
Gets the
font style attribute. |
String |
getFontFamily()
Gets the
fontFamily style attribute. |
String |
getFontSize()
Gets the
fontSize style attribute. |
String |
getHeight()
Gets the
height style attribute. |
String |
getLeft()
Gets the
left style attribute. |
String |
getLetterSpacing()
Gets the
letterSpacing style attribute. |
String |
getLineHeight()
Gets the
lineHeight style attribute. |
String |
getMargin()
Gets the
margin style attribute. |
String |
getMarginBottom()
Gets the
marginBottom style attribute. |
String |
getMarginLeft()
Gets the
marginLeft style attribute. |
String |
getMarginRight()
Gets the
marginRight style attribute. |
String |
getMarginTop()
Gets the
marginTop style attribute. |
String |
getMaxHeight()
Gets the
maxHeight style attribute. |
String |
getMaxWidth()
Gets the
maxWidth style attribute. |
String |
getMinHeight()
Gets the
minHeight style attribute. |
String |
getMinWidth()
Gets the
minWidth style attribute. |
String |
getOpacity()
Gets the
opacity style attribute. |
String |
getOrphans()
Gets the
orphans style attribute. |
String |
getOutlineWidth()
Gets the
outlineWidth style attribute. |
String |
getPadding()
Gets the
padding style attribute. |
String |
getPaddingBottom()
Gets the
paddingBottom style attribute. |
String |
getPaddingLeft()
Gets the
paddingLeft style attribute. |
String |
getPaddingRight()
Gets the
paddingRight style attribute. |
String |
getPaddingTop()
Gets the
paddingTop style attribute. |
String |
getPosition()
Gets the
position style attribute. |
String |
getPropertyValue(String name)
Gets the value of the specified property of the style.
|
String |
getRight()
Gets the
right style attribute. |
String |
getTextIndent()
Gets the
textIndent style attribute. |
String |
getTop()
Gets the
top style attribute. |
String |
getVerticalAlign()
Gets the
verticalAlign style attribute. |
String |
getWidows()
Gets the
widows style attribute. |
String |
getWordSpacing()
Gets the
wordSpacing style attribute. |
String |
getZIndex()
Gets the
zIndex style attribute. |
void |
jsConstructor()
JavaScript constructor.
|
protected void |
setStyleAttribute(String name,
String newValue)
Sets the specified style attribute.
|
org.htmlunit.corejs.javascript.Scriptable |
values()
Returns an Iterator allowing to go through all keys contained in this object.
|
get, get, getBorderTop, getCssText, getIds, getLength, getOutline, getParentRule, getPropertyPriority, getRubyAlign, getSize, getStyleAttribute, getStyleAttribute, getStylePriority, getWidth, has, item, jsConstructor, put, removeProperty, setBackgroundAttachment, setBackgroundColor, setBackgroundImage, setBackgroundPosition, setBackgroundRepeat, setBlockSize, setBorderBottomColor, setBorderBottomStyle, setBorderBottomWidth, setBorderLeftColor, setBorderLeftStyle, setBorderLeftWidth, setBorderRightColor, setBorderRightStyle, setBorderRightWidth, setBorderTop, setBorderTopColor, setBorderTopStyle, setBorderTopWidth, setBottom, setColor, setCssFloat, setCssText, setDisplay, setFont, setFontFamily, setFontSize, setHeight, setLeft, setLetterSpacing, setLineHeight, setMargin, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setMaxHeight, setMaxWidth, setMinHeight, setMinWidth, setOpacity, setOrphans, setOutline, setOutlineWidth, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setParentRule, setPosition, setProperty, setRight, setRubyAlign, setSize, setStyleAttribute, setTextIndent, setTop, setVerticalAlign, setWidows, setWidth, setWordSpacing, setZIndex, toStringclone, equivalentValues, getBrowserVersion, getClassName, getDefaultValue, getDomNodeOrDie, getDomNodeOrNull, getPrototype, getScriptableFor, getWindow, getWindow, getWindowFromTopCallScope, getWithPreemption, has, hasInstance, initParentScope, makeScriptableFor, setClassName, setDomNode, setDomNode, setParentScope, setupPromise, setupRejectedPromiseapplyDescriptorToAttributeBitset, associateValue, avoidObjectDetection, buildDataDescriptor, callMethod, callMethod, checkNotSealed, checkPropertyChangeForSlot, checkPropertyChangeForSlot, checkPropertyDefinition, checkSlotRemoval, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineBuiltInProperty, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineOwnProperties, defineOwnProperty, defineOwnProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, delete, deleteProperty, deleteProperty, deleteProperty, ensureScriptable, ensureScriptableObject, ensureScriptableObjectButNotSymbol, ensureSymbolScriptable, ensureType, get, get, getAllIds, getArrayPrototype, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getExternalArrayData, getExternalArrayLength, getFunctionPrototype, getGeneratorFunctionPrototype, getGetterOrSetter, getGetterOrSetter, getObjectPrototype, getOwnPropertyDescriptor, getParentScope, getProperty, getProperty, getProperty, getPropertyIds, getPrototype, getSuperProperty, getSuperProperty, getSuperProperty, getTopLevelScope, getTopScopeValue, getTypedProperty, getTypedProperty, getTypeOf, has, hasProperty, hasProperty, hasProperty, isAccessorDescriptor, isConst, isDataDescriptor, isDataDescriptor, isEmpty, isExtensible, isFalse, isGenericDescriptor, isGetterOrSetter, isGetterOrSetter, isSealed, isTrue, preventExtensions, put, put, putConst, putConstProperty, putOwnProperty, putOwnProperty, putOwnProperty, putProperty, putProperty, putProperty, putSuperProperty, putSuperProperty, putSuperProperty, querySlot, redefineProperty, sameValue, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setAttributes, setCommonDescriptorProperties, setExternalArrayData, setGetterOrSetter, setPrototype, sizecreateSlotMappublic static final String TO_STRING_TAG
public ComputedCSSStyleDeclaration()
public ComputedCSSStyleDeclaration(Element element, ComputedCssStyleDeclaration cssStyleDeclaration)
element - the element this belongs tocssStyleDeclaration - the ComputedCssStyleDeclaration this is base onpublic void jsConstructor()
protected ComputedCssStyleDeclaration getCssStyleDeclaration()
getCssStyleDeclaration in class CSSStyleDeclarationpublic org.htmlunit.corejs.javascript.Scriptable values()
values in class CSSStyleDeclarationprotected void setStyleAttribute(String name, String newValue)
setStyleAttribute in class CSSStyleDeclarationname - the attribute name (camel-cased)newValue - the attribute valuepublic String getBackgroundAttachment()
backgroundAttachment style attribute.getBackgroundAttachment in class CSSStyleDeclarationpublic String getBackgroundColor()
backgroundColor style attribute.getBackgroundColor in class CSSStyleDeclarationpublic String getBackgroundImage()
backgroundImage style attribute.getBackgroundImage in class CSSStyleDeclarationpublic String getBackgroundPosition()
backgroundPosition style attribute.getBackgroundPosition in class CSSStyleDeclarationpublic String getBackgroundRepeat()
backgroundRepeat style attribute.getBackgroundRepeat in class CSSStyleDeclarationpublic String getBlockSize()
blockSize style attribute.getBlockSize in class CSSStyleDeclarationpublic String getBorderBottomColor()
borderBottomColor style attribute.getBorderBottomColor in class CSSStyleDeclarationpublic String getBorderBottomStyle()
borderBottomStyle style attribute.getBorderBottomStyle in class CSSStyleDeclarationpublic String getBorderBottomWidth()
borderBottomWidth style attribute.getBorderBottomWidth in class CSSStyleDeclarationpublic String getBorderLeftColor()
borderLeftColor style attribute.getBorderLeftColor in class CSSStyleDeclarationpublic String getBorderLeftStyle()
borderLeftStyle style attribute.getBorderLeftStyle in class CSSStyleDeclarationpublic String getBorderLeftWidth()
borderLeftWidth style attribute.getBorderLeftWidth in class CSSStyleDeclarationpublic String getBorderRightColor()
borderRightColor style attribute.getBorderRightColor in class CSSStyleDeclarationpublic String getBorderRightStyle()
borderRightStyle style attribute.getBorderRightStyle in class CSSStyleDeclarationpublic String getBorderRightWidth()
borderRightWidth style attribute.getBorderRightWidth in class CSSStyleDeclarationpublic String getBorderTopColor()
borderTopColor style attribute.getBorderTopColor in class CSSStyleDeclarationpublic String getBorderTopStyle()
borderTopStyle style attribute.getBorderTopStyle in class CSSStyleDeclarationpublic String getBorderTopWidth()
borderTopWidth style attribute.getBorderTopWidth in class CSSStyleDeclarationpublic String getBottom()
bottom style attribute.getBottom in class CSSStyleDeclarationpublic String getColor()
color style attribute.getColor in class CSSStyleDeclarationpublic String getCssFloat()
cssFloat style attribute.getCssFloat in class CSSStyleDeclarationpublic String getDisplay()
display style attribute.getDisplay in class CSSStyleDeclarationpublic String getFont()
font style attribute.getFont in class CSSStyleDeclarationpublic String getFontFamily()
fontFamily style attribute.getFontFamily in class CSSStyleDeclarationpublic String getFontSize()
fontSize style attribute.getFontSize in class CSSStyleDeclarationpublic String getLineHeight()
lineHeight style attribute.getLineHeight in class CSSStyleDeclarationpublic String getHeight()
height style attribute.getHeight in class CSSStyleDeclarationpublic String getLeft()
left style attribute.getLeft in class CSSStyleDeclarationpublic String getLetterSpacing()
letterSpacing style attribute.getLetterSpacing in class CSSStyleDeclarationpublic String getMargin()
margin style attribute.getMargin in class CSSStyleDeclarationpublic String getMarginBottom()
marginBottom style attribute.getMarginBottom in class CSSStyleDeclarationpublic String getMarginLeft()
marginLeft style attribute.getMarginLeft in class CSSStyleDeclarationpublic String getMarginRight()
marginRight style attribute.getMarginRight in class CSSStyleDeclarationpublic String getMarginTop()
marginTop style attribute.getMarginTop in class CSSStyleDeclarationpublic String getMaxHeight()
maxHeight style attribute.getMaxHeight in class CSSStyleDeclarationpublic String getMaxWidth()
maxWidth style attribute.getMaxWidth in class CSSStyleDeclarationpublic String getMinHeight()
minHeight style attribute.getMinHeight in class CSSStyleDeclarationpublic String getMinWidth()
minWidth style attribute.getMinWidth in class CSSStyleDeclarationpublic String getOpacity()
opacity style attribute.getOpacity in class CSSStyleDeclarationpublic String getOutlineWidth()
outlineWidth style attribute.getOutlineWidth in class CSSStyleDeclarationpublic String getPadding()
padding style attribute.getPadding in class CSSStyleDeclarationpublic String getPaddingBottom()
paddingBottom style attribute.getPaddingBottom in class CSSStyleDeclarationpublic String getPaddingLeft()
paddingLeft style attribute.getPaddingLeft in class CSSStyleDeclarationpublic String getPaddingRight()
paddingRight style attribute.getPaddingRight in class CSSStyleDeclarationpublic String getPaddingTop()
paddingTop style attribute.getPaddingTop in class CSSStyleDeclarationpublic String getRight()
right style attribute.getRight in class CSSStyleDeclarationpublic String getTextIndent()
textIndent style attribute.getTextIndent in class CSSStyleDeclarationpublic String getTop()
top style attribute.getTop in class CSSStyleDeclarationpublic String getVerticalAlign()
verticalAlign style attribute.getVerticalAlign in class CSSStyleDeclarationpublic String getWidows()
widows style attribute.getWidows in class CSSStyleDeclarationpublic String getOrphans()
orphans style attribute.getOrphans in class CSSStyleDeclarationpublic String getPosition()
position style attribute.getPosition in class CSSStyleDeclarationpublic String getWordSpacing()
wordSpacing style attribute.getWordSpacing in class CSSStyleDeclarationpublic String getZIndex()
zIndex style attribute.getZIndex in class CSSStyleDeclarationpublic String getPropertyValue(String name)
getPropertyValue in class CSSStyleDeclarationname - the style property nameCopyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.