CSSStyleDeclaration
Module: JavaScript DOM API
The style of an element.
#include <CSSStyleDeclaration.idl>
Public Functions
Name | |
---|---|
DOMString | getPropertyValue(DomStatString prop) returns the value of the property |
void | setProperty(DomStatString propName, CSSString value, optional DOMString? priority =null) sets a new value for a property on a CSS style declaration object |
DOMString | removeProperty(DomStatString propName) |
Public Attributes
Name | |
---|---|
attribute DOMString | borderBottomWidth |
attribute DOMString | borderLeftWidth |
attribute DOMString | borderRightWidth |
attribute DOMString | borderTopWidth |
attribute DOMString | borderWidth |
attribute DOMString | borderBottomColor |
attribute DOMString | borderLeftColor |
attribute DOMString | borderRightColor |
attribute DOMString | borderTopColor |
attribute DOMString | borderColor |
attribute DOMString | borderBottomStyle |
attribute DOMString | borderLeftStyle |
attribute DOMString | borderRightStyle |
attribute DOMString | borderTopStyle |
attribute DOMString | borderStyle |
attribute DOMString | borderBottom |
attribute DOMString | borderLeft |
attribute DOMString | borderRight |
attribute DOMString | borderTop |
attribute DOMString | border |
attribute DOMString | top |
attribute DOMString | left |
attribute DOMString | bottom |
attribute DOMString | right |
attribute long | topPX set the top in pixels |
attribute long | leftPX set the left in pixels |
attribute long | bottomPX set the bottom in pixels |
attribute long | rightPX set the right in pixels |
attribute long | topVW |
attribute long | leftVW |
attribute long | bottomVW |
attribute long | rightVW |
attribute long | topVH |
attribute long | leftVH |
attribute long | bottomVH |
attribute long | rightVH |
attribute long | topREM |
attribute long | leftREM |
attribute long | bottomREM |
attribute long | rightREM |
attribute long | topPERCENT |
attribute long | leftPERCENT |
attribute long | bottomPERCENT |
attribute long | rightPERCENT |
attribute DOMString | width |
attribute DOMString | height |
attribute DOMString | minWidth |
attribute DOMString | minHeight |
attribute DOMString | maxWidth |
attribute DOMString | maxHeight |
attribute long | widthPX |
attribute long | heightPX |
attribute long | minWidthPX |
attribute long | minHeightPX |
attribute long | maxWidthPX |
attribute long | maxHeightPX |
attribute long | widthVW |
attribute long | heightVW |
attribute long | minWidthVW |
attribute long | minHeightVW |
attribute long | maxWidthVW |
attribute long | maxHeightVW |
attribute long | widthVH |
attribute long | heightVH |
attribute long | minWidthVH |
attribute long | minHeightVH |
attribute long | maxWidthVH |
attribute long | maxHeightVH |
attribute long | widthREM |
attribute long | heightREM |
attribute long | minWidthREM |
attribute long | minHeightREM |
attribute long | maxWidthREM |
attribute long | maxHeightREM |
attribute long | widthPERCENT |
attribute long | heightPERCENT |
attribute long | minWidthPERCENT |
attribute long | minHeightPERCENT |
attribute long | maxWidthPERCENT |
attribute long | maxHeightPERCENT |
attribute DOMString | backgroundSize |
attribute DOMString | backgroundImage |
attribute DOMString | backgroundPositionX |
attribute DOMString | backgroundPositionY |
attribute DOMString | backgroundPosition |
attribute DOMString | backgroundRepeat |
attribute DOMString | borderTopLeftRadius |
attribute DOMString | borderTopRightRadius |
attribute DOMString | borderBottomLeftRadius |
attribute DOMString | borderBottomRightRadius |
attribute DOMString | borderRadius |
attribute DOMString | borderImageSource |
attribute DOMString | borderImageSlice |
attribute DOMString | borderImageWidth |
attribute DOMString | borderImageOutset |
attribute DOMString | borderImageRepeat |
attribute DOMString | borderImage |
attribute DOMString | boxShadow |
attribute DOMString | textShadow |
attribute DOMString | textStrokeWidth |
attribute DOMString | textStrokeColor |
attribute DOMString | textStroke |
attribute DOMString | textAlign |
attribute DOMString | letterSpacing |
attribute DOMString | lineHeight |
attribute DOMString | filter |
attribute DOMString | flexDirection |
attribute DOMString | justifyContent |
attribute DOMString | alignSelf |
attribute DOMString | alignItems |
attribute DOMString | alignContent |
attribute DOMString | flexWrap |
attribute DOMString | flex |
attribute DOMString | flexGrow |
attribute DOMString | flexShrink |
attribute DOMString | flexBasis |
attribute DOMString | backfaceVisibility |
attribute DOMString | font |
attribute DOMString | fontFamily |
attribute DOMString | fontSize |
attribute DOMString | fontWeight |
attribute DOMString | fontStyle |
attribute DOMString | cohFontFitMode |
attribute DOMString | cohFontFitMaxSize |
attribute DOMString | cohFontFitMinSize |
attribute DOMString | cohFontFit |
attribute DOMString | textTransform |
attribute DOMString | overflowWrap |
attribute DOMString | whiteSpace |
attribute DOMString | textOverflow |
attribute DOMString | cohSdf |
attribute DOMString | cssText |
attribute DOMString | all |
attribute DOMString | display |
attribute DOMString | position |
attribute DOMString | color |
attribute DOMString | backgroundColor |
attribute DOMString | cursor |
attribute DOMString | marginBottom |
attribute DOMString | marginLeft |
attribute DOMString | marginRight |
attribute DOMString | marginTop |
attribute DOMString | margin |
attribute DOMString | paddingBottom |
attribute DOMString | paddingLeft |
attribute DOMString | paddingRight |
attribute DOMString | paddingTop |
attribute DOMString | padding |
attribute DOMString | clipPath |
attribute DOMString | zIndex set the zIndex |
attribute DOMString | opacity Opacity value. |
attribute DOMString | visibility |
attribute DOMString | textDecorationLine |
attribute DOMString | textUnderlineOffset |
attribute DOMString | textUnderlinePosition |
attribute DOMString | textDecorationColor |
attribute DOMString | textDecorationThickness |
attribute DOMString | textDecorationStyle |
attribute DOMString | textDecoration |
attribute long | textUnderlineOffsetPX |
attribute long | textUnderlineOffsetVH |
attribute long | textUnderlineOffsetVW |
attribute long | textUnderlineOffsetPERCENT |
attribute long | textUnderlineOffsetREM |
attribute long | textDecorationThicknessPX |
attribute long | textDecorationThicknessVH |
attribute long | textDecorationThicknessVW |
attribute long | textDecorationThicknessPERCENT |
attribute long | textDecorationThicknessREM |
attribute DOMString | transform set transformation |
attribute DOMString | transformOrigin |
attribute DOMString | animation |
attribute DOMString | animationName |
attribute DOMString | animationDuration |
attribute DOMString | animationIterationCount |
attribute DOMString | animationTimingFunction |
attribute DOMString | animationPlayState |
attribute DOMString | animationFillMode |
attribute DOMString | animationDelay |
attribute DOMString | animationDirection |
attribute DOMString | contain |
attribute DOMString | content |
attribute DOMString | overflowX |
attribute DOMString | overflowY |
attribute DOMString | overflow |
attribute DOMString | maskPosition |
attribute DOMString | maskSize |
attribute DOMString | background |
attribute DOMString | maskImage |
attribute DOMString | maskMode |
attribute DOMString | maskClip |
attribute DOMString | maskRepeat |
attribute DOMString | mask |
attribute DOMString | perspective |
attribute DOMString | perspectiveOrigin |
attribute DOMString | isolation |
attribute DOMString | mixBlendMode |
attribute DOMString | transitionProperty |
attribute DOMString | transitionDuration |
attribute DOMString | transitionDelay |
attribute DOMString | transitionTimingFunction |
attribute DOMString | transition |
attribute DOMString | caretColor |
attribute DOMString | userSelect |
attribute DOMString | pointerEvents |
attribute DOMString | imageRendering |
attribute DOMString | fill SVG properties. |
attribute DOMString | fillOpacity |
attribute DOMString | stroke |
attribute DOMString | strokeOpacity |
attribute DOMString | strokeWidth |
attribute DOMString | strokeLinecap |
attribute DOMString | strokeLinejoin |
attribute DOMString | strokeMiterlimit |
attribute DOMString | stopOpacity |
attribute DOMString | stopColor |
attribute DOMString | fillRule |
attribute DOMString | clipRule |
attribute DOMString | maskType |
attribute DOMString | strokeDasharray |
attribute DOMString | strokeDashoffset |
attribute DOMString | cohCustomEffectName Custom properties. |
attribute DOMString | cohCustomEffectFloatParam1 |
attribute DOMString | cohCustomEffectFloatParam2 |
attribute DOMString | cohCustomEffectFloatParam3 |
attribute DOMString | cohCustomEffectFloatParam4 |
attribute DOMString | cohCustomEffectFloatParam5 |
attribute DOMString | cohCustomEffectFloatParam6 |
attribute DOMString | cohCustomEffectFloatParam7 |
attribute DOMString | cohCustomEffectFloatParam8 |
attribute DOMString | cohCustomEffectFloatParam9 |
attribute DOMString | cohCustomEffectFloatParam10 |
attribute DOMString | cohCustomEffectFloatParam11 |
attribute DOMString | cohCustomEffectFloatParam12 |
attribute DOMString | cohCustomEffectStringParam1 |
attribute DOMString | cohCustomEffectStringParam2 |
attribute DOMString | cohCompositionId |
attribute DOMString | cohRenderingOption |
Public Functions Documentation
function getPropertyValue
DOMString getPropertyValue(
DomStatString prop
)
returns the value of the property
function setProperty
void setProperty(
DomStatString propName,
CSSString value,
optional DOMString? priority =null
)
sets a new value for a property on a CSS style declaration object
function removeProperty
DOMString removeProperty(
DomStatString propName
)
Public Attributes Documentation
variable borderBottomWidth
attribute DOMString borderBottomWidth;
variable borderLeftWidth
attribute DOMString borderLeftWidth;
variable borderRightWidth
attribute DOMString borderRightWidth;
variable borderTopWidth
attribute DOMString borderTopWidth;
variable borderWidth
attribute DOMString borderWidth;
variable borderBottomColor
attribute DOMString borderBottomColor;
variable borderLeftColor
attribute DOMString borderLeftColor;
variable borderRightColor
attribute DOMString borderRightColor;
variable borderTopColor
attribute DOMString borderTopColor;
variable borderColor
attribute DOMString borderColor;
variable borderBottomStyle
attribute DOMString borderBottomStyle;
variable borderLeftStyle
attribute DOMString borderLeftStyle;
variable borderRightStyle
attribute DOMString borderRightStyle;
variable borderTopStyle
attribute DOMString borderTopStyle;
variable borderStyle
attribute DOMString borderStyle;
variable borderBottom
attribute DOMString borderBottom;
variable borderLeft
attribute DOMString borderLeft;
variable borderRight
attribute DOMString borderRight;
variable borderTop
attribute DOMString borderTop;
variable border
attribute DOMString border;
variable top
attribute DOMString top;
variable left
attribute DOMString left;
variable bottom
attribute DOMString bottom;
variable right
attribute DOMString right;
variable topPX
attribute long topPX;
set the top in pixels
variable leftPX
attribute long leftPX;
set the left in pixels
variable bottomPX
attribute long bottomPX;
set the bottom in pixels
variable rightPX
attribute long rightPX;
set the right in pixels
variable topVW
attribute long topVW;
variable leftVW
attribute long leftVW;
variable bottomVW
attribute long bottomVW;
variable rightVW
attribute long rightVW;
variable topVH
attribute long topVH;
variable leftVH
attribute long leftVH;
variable bottomVH
attribute long bottomVH;
variable rightVH
attribute long rightVH;
variable topREM
attribute long topREM;
variable leftREM
attribute long leftREM;
variable bottomREM
attribute long bottomREM;
variable rightREM
attribute long rightREM;
variable topPERCENT
attribute long topPERCENT;
variable leftPERCENT
attribute long leftPERCENT;
variable bottomPERCENT
attribute long bottomPERCENT;
variable rightPERCENT
attribute long rightPERCENT;
variable width
attribute DOMString width;
variable height
attribute DOMString height;
variable minWidth
attribute DOMString minWidth;
variable minHeight
attribute DOMString minHeight;
variable maxWidth
attribute DOMString maxWidth;
variable maxHeight
attribute DOMString maxHeight;
variable widthPX
attribute long widthPX;
variable heightPX
attribute long heightPX;
variable minWidthPX
attribute long minWidthPX;
variable minHeightPX
attribute long minHeightPX;
variable maxWidthPX
attribute long maxWidthPX;
variable maxHeightPX
attribute long maxHeightPX;
variable widthVW
attribute long widthVW;
variable heightVW
attribute long heightVW;
variable minWidthVW
attribute long minWidthVW;
variable minHeightVW
attribute long minHeightVW;
variable maxWidthVW
attribute long maxWidthVW;
variable maxHeightVW
attribute long maxHeightVW;
variable widthVH
attribute long widthVH;
variable heightVH
attribute long heightVH;
variable minWidthVH
attribute long minWidthVH;
variable minHeightVH
attribute long minHeightVH;
variable maxWidthVH
attribute long maxWidthVH;
variable maxHeightVH
attribute long maxHeightVH;
variable widthREM
attribute long widthREM;
variable heightREM
attribute long heightREM;
variable minWidthREM
attribute long minWidthREM;
variable minHeightREM
attribute long minHeightREM;
variable maxWidthREM
attribute long maxWidthREM;
variable maxHeightREM
attribute long maxHeightREM;
variable widthPERCENT
attribute long widthPERCENT;
variable heightPERCENT
attribute long heightPERCENT;
variable minWidthPERCENT
attribute long minWidthPERCENT;
variable minHeightPERCENT
attribute long minHeightPERCENT;
variable maxWidthPERCENT
attribute long maxWidthPERCENT;
variable maxHeightPERCENT
attribute long maxHeightPERCENT;
variable backgroundSize
attribute DOMString backgroundSize;
variable backgroundImage
attribute DOMString backgroundImage;
variable backgroundPositionX
attribute DOMString backgroundPositionX;
variable backgroundPositionY
attribute DOMString backgroundPositionY;
variable backgroundPosition
attribute DOMString backgroundPosition;
variable backgroundRepeat
attribute DOMString backgroundRepeat;
variable borderTopLeftRadius
attribute DOMString borderTopLeftRadius;
variable borderTopRightRadius
attribute DOMString borderTopRightRadius;
variable borderBottomLeftRadius
attribute DOMString borderBottomLeftRadius;
variable borderBottomRightRadius
attribute DOMString borderBottomRightRadius;
variable borderRadius
attribute DOMString borderRadius;
variable borderImageSource
attribute DOMString borderImageSource;
variable borderImageSlice
attribute DOMString borderImageSlice;
variable borderImageWidth
attribute DOMString borderImageWidth;
variable borderImageOutset
attribute DOMString borderImageOutset;
variable borderImageRepeat
attribute DOMString borderImageRepeat;
variable borderImage
attribute DOMString borderImage;
variable boxShadow
attribute DOMString boxShadow;
variable textShadow
attribute DOMString textShadow;
variable textStrokeWidth
attribute DOMString textStrokeWidth;
variable textStrokeColor
attribute DOMString textStrokeColor;
variable textStroke
attribute DOMString textStroke;
variable textAlign
attribute DOMString textAlign;
variable letterSpacing
attribute DOMString letterSpacing;
variable lineHeight
attribute DOMString lineHeight;
variable filter
attribute DOMString filter;
variable flexDirection
attribute DOMString flexDirection;
variable justifyContent
attribute DOMString justifyContent;
variable alignSelf
attribute DOMString alignSelf;
variable alignItems
attribute DOMString alignItems;
variable alignContent
attribute DOMString alignContent;
variable flexWrap
attribute DOMString flexWrap;
variable flex
attribute DOMString flex;
variable flexGrow
attribute DOMString flexGrow;
variable flexShrink
attribute DOMString flexShrink;
variable flexBasis
attribute DOMString flexBasis;
variable backfaceVisibility
attribute DOMString backfaceVisibility;
variable font
attribute DOMString font;
variable fontFamily
attribute DOMString fontFamily;
variable fontSize
attribute DOMString fontSize;
variable fontWeight
attribute DOMString fontWeight;
variable fontStyle
attribute DOMString fontStyle;
variable cohFontFitMode
attribute DOMString cohFontFitMode;
variable cohFontFitMaxSize
attribute DOMString cohFontFitMaxSize;
variable cohFontFitMinSize
attribute DOMString cohFontFitMinSize;
variable cohFontFit
attribute DOMString cohFontFit;
variable textTransform
attribute DOMString textTransform;
variable overflowWrap
attribute DOMString overflowWrap;
variable whiteSpace
attribute DOMString whiteSpace;
variable textOverflow
attribute DOMString textOverflow;
variable cohSdf
attribute DOMString cohSdf;
variable cssText
attribute DOMString cssText;
variable all
attribute DOMString all;
variable display
attribute DOMString display;
variable position
attribute DOMString position;
variable color
attribute DOMString color;
variable backgroundColor
attribute DOMString backgroundColor;
variable cursor
attribute DOMString cursor;
variable marginBottom
attribute DOMString marginBottom;
variable marginLeft
attribute DOMString marginLeft;
variable marginRight
attribute DOMString marginRight;
variable marginTop
attribute DOMString marginTop;
variable margin
attribute DOMString margin;
variable paddingBottom
attribute DOMString paddingBottom;
variable paddingLeft
attribute DOMString paddingLeft;
variable paddingRight
attribute DOMString paddingRight;
variable paddingTop
attribute DOMString paddingTop;
variable padding
attribute DOMString padding;
variable clipPath
attribute DOMString clipPath;
variable zIndex
attribute DOMString zIndex;
set the zIndex
variable opacity
attribute DOMString opacity;
Opacity value.
variable visibility
attribute DOMString visibility;
variable textDecorationLine
attribute DOMString textDecorationLine;
variable textUnderlineOffset
attribute DOMString textUnderlineOffset;
variable textUnderlinePosition
attribute DOMString textUnderlinePosition;
variable textDecorationColor
attribute DOMString textDecorationColor;
variable textDecorationThickness
attribute DOMString textDecorationThickness;
variable textDecorationStyle
attribute DOMString textDecorationStyle;
variable textDecoration
attribute DOMString textDecoration;
variable textUnderlineOffsetPX
attribute long textUnderlineOffsetPX;
variable textUnderlineOffsetVH
attribute long textUnderlineOffsetVH;
variable textUnderlineOffsetVW
attribute long textUnderlineOffsetVW;
variable textUnderlineOffsetPERCENT
attribute long textUnderlineOffsetPERCENT;
variable textUnderlineOffsetREM
attribute long textUnderlineOffsetREM;
variable textDecorationThicknessPX
attribute long textDecorationThicknessPX;
variable textDecorationThicknessVH
attribute long textDecorationThicknessVH;
variable textDecorationThicknessVW
attribute long textDecorationThicknessVW;
variable textDecorationThicknessPERCENT
attribute long textDecorationThicknessPERCENT;
variable textDecorationThicknessREM
attribute long textDecorationThicknessREM;
variable transform
attribute DOMString transform;
set transformation
variable transformOrigin
attribute DOMString transformOrigin;
variable animation
attribute DOMString animation;
variable animationName
attribute DOMString animationName;
variable animationDuration
attribute DOMString animationDuration;
variable animationIterationCount
attribute DOMString animationIterationCount;
variable animationTimingFunction
attribute DOMString animationTimingFunction;
variable animationPlayState
attribute DOMString animationPlayState;
variable animationFillMode
attribute DOMString animationFillMode;
variable animationDelay
attribute DOMString animationDelay;
variable animationDirection
attribute DOMString animationDirection;
variable contain
attribute DOMString contain;
variable content
attribute DOMString content;
variable overflowX
attribute DOMString overflowX;
variable overflowY
attribute DOMString overflowY;
variable overflow
attribute DOMString overflow;
variable maskPosition
attribute DOMString maskPosition;
variable maskSize
attribute DOMString maskSize;
variable background
attribute DOMString background;
variable maskImage
attribute DOMString maskImage;
variable maskMode
attribute DOMString maskMode;
variable maskClip
attribute DOMString maskClip;
variable maskRepeat
attribute DOMString maskRepeat;
variable mask
attribute DOMString mask;
variable perspective
attribute DOMString perspective;
variable perspectiveOrigin
attribute DOMString perspectiveOrigin;
variable isolation
attribute DOMString isolation;
variable mixBlendMode
attribute DOMString mixBlendMode;
variable transitionProperty
attribute DOMString transitionProperty;
variable transitionDuration
attribute DOMString transitionDuration;
variable transitionDelay
attribute DOMString transitionDelay;
variable transitionTimingFunction
attribute DOMString transitionTimingFunction;
variable transition
attribute DOMString transition;
variable caretColor
attribute DOMString caretColor;
variable userSelect
attribute DOMString userSelect;
variable pointerEvents
attribute DOMString pointerEvents;
variable imageRendering
attribute DOMString imageRendering;
variable fill
attribute DOMString fill;
SVG properties.
variable fillOpacity
attribute DOMString fillOpacity;
variable stroke
attribute DOMString stroke;
variable strokeOpacity
attribute DOMString strokeOpacity;
variable strokeWidth
attribute DOMString strokeWidth;
variable strokeLinecap
attribute DOMString strokeLinecap;
variable strokeLinejoin
attribute DOMString strokeLinejoin;
variable strokeMiterlimit
attribute DOMString strokeMiterlimit;
variable stopOpacity
attribute DOMString stopOpacity;
variable stopColor
attribute DOMString stopColor;
variable fillRule
attribute DOMString fillRule;
variable clipRule
attribute DOMString clipRule;
variable maskType
attribute DOMString maskType;
variable strokeDasharray
attribute DOMString strokeDasharray;
variable strokeDashoffset
attribute DOMString strokeDashoffset;
variable cohCustomEffectName
attribute DOMString cohCustomEffectName;
Custom properties.
variable cohCustomEffectFloatParam1
attribute DOMString cohCustomEffectFloatParam1;
variable cohCustomEffectFloatParam2
attribute DOMString cohCustomEffectFloatParam2;
variable cohCustomEffectFloatParam3
attribute DOMString cohCustomEffectFloatParam3;
variable cohCustomEffectFloatParam4
attribute DOMString cohCustomEffectFloatParam4;
variable cohCustomEffectFloatParam5
attribute DOMString cohCustomEffectFloatParam5;
variable cohCustomEffectFloatParam6
attribute DOMString cohCustomEffectFloatParam6;
variable cohCustomEffectFloatParam7
attribute DOMString cohCustomEffectFloatParam7;
variable cohCustomEffectFloatParam8
attribute DOMString cohCustomEffectFloatParam8;
variable cohCustomEffectFloatParam9
attribute DOMString cohCustomEffectFloatParam9;
variable cohCustomEffectFloatParam10
attribute DOMString cohCustomEffectFloatParam10;
variable cohCustomEffectFloatParam11
attribute DOMString cohCustomEffectFloatParam11;
variable cohCustomEffectFloatParam12
attribute DOMString cohCustomEffectFloatParam12;
variable cohCustomEffectStringParam1
attribute DOMString cohCustomEffectStringParam1;
variable cohCustomEffectStringParam2
attribute DOMString cohCustomEffectStringParam2;
variable cohCompositionId
attribute DOMString cohCompositionId;
variable cohRenderingOption
attribute DOMString cohRenderingOption;