CSSStyleDeclaration represents a collection of CSS property-value pairs. It is used in a few APIs:

Documentation CSSStyleDeclaration by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

alignContent:String

Shorthand for the "align-content" CSS property.

alignItems:String

Shorthand for the "align-items" CSS property.

alignSelf:String

Shorthand for the "align-self" CSS property.

alignmentAdjust:String

Shorthand for the "alignment-adjust" CSS property.

alignmentBaseline:String

Shorthand for the "alignment-baseline" CSS property.

all:String

Shorthand for the "all" CSS property.

anchorPoint:String

Shorthand for the "anchor-point" CSS property.

animation:String

Shorthand for the "animation" CSS property.

animationDelay:String

Shorthand for the "animation-delay" CSS property.

animationDirection:String

Shorthand for the "animation-direction" CSS property.

animationDuration:String

Shorthand for the "animation-duration" CSS property.

animationFillMode:String

Shorthand for the "animation-fill-mode" CSS property.

animationIterationCount:String

Shorthand for the "animation-iteration-count" CSS property.

animationName:String

Shorthand for the "animation-name" CSS property.

animationPlayState:String

Shorthand for the "animation-play-state" CSS property.

animationTimingFunction:String

Shorthand for the "animation-timing-function" CSS property.

azimuth:String

Shorthand for the "azimuth" CSS property.

backfaceVisibility:String

Shorthand for the "backface-visibility" CSS property.

background:String

Shorthand for the "background" CSS property.

backgroundAttachment:String

Shorthand for the "background-attachment" CSS property.

backgroundClip:String

Shorthand for the "background-clip" CSS property.

backgroundColor:String

Shorthand for the "background-color" CSS property.

backgroundImage:String

Shorthand for the "background-image" CSS property.

backgroundOrigin:String

Shorthand for the "background-origin" CSS property.

backgroundPosition:String

Shorthand for the "background-position" CSS property.

backgroundRepeat:String

Shorthand for the "background-repeat" CSS property.

backgroundSize:String

Shorthand for the "background-size" CSS property.

baselineShift:String

Shorthand for the "baseline-shift" CSS property.

binding:String

Shorthand for the "binding" CSS property.

bleed:String

Shorthand for the "bleed" CSS property.

bookmarkLabel:String

Shorthand for the "bookmark-label" CSS property.

bookmarkLevel:String

Shorthand for the "bookmark-level" CSS property.

bookmarkState:String

Shorthand for the "bookmark-state" CSS property.

border:String

Shorthand for the "border" CSS property.

borderBottom:String

Shorthand for the "border-bottom" CSS property.

borderBottomColor:String

Shorthand for the "border-bottom-color" CSS property.

borderBottomLeftRadius:String

Shorthand for the "border-bottom-left-radius" CSS property.

borderBottomRightRadius:String

Shorthand for the "border-bottom-right-radius" CSS property.

borderBottomStyle:String

Shorthand for the "border-bottom-style" CSS property.

borderBottomWidth:String

Shorthand for the "border-bottom-width" CSS property.

borderCollapse:String

Shorthand for the "border-collapse" CSS property.

borderColor:String

Shorthand for the "border-color" CSS property.

borderImage:String

Shorthand for the "border-image" CSS property.

borderImageOutset:String

Shorthand for the "border-image-outset" CSS property.

borderImageRepeat:String

Shorthand for the "border-image-repeat" CSS property.

borderImageSlice:String

Shorthand for the "border-image-slice" CSS property.

borderImageSource:String

Shorthand for the "border-image-source" CSS property.

borderImageWidth:String

Shorthand for the "border-image-width" CSS property.

borderLeft:String

Shorthand for the "border-left" CSS property.

borderLeftColor:String

Shorthand for the "border-left-color" CSS property.

borderLeftStyle:String

Shorthand for the "border-left-style" CSS property.

borderLeftWidth:String

Shorthand for the "border-left-width" CSS property.

borderRadius:String

Shorthand for the "border-radius" CSS property.

borderRight:String

Shorthand for the "border-right" CSS property.

borderRightColor:String

Shorthand for the "border-right-color" CSS property.

borderRightStyle:String

Shorthand for the "border-right-style" CSS property.

borderRightWidth:String

Shorthand for the "border-right-width" CSS property.

borderSpacing:String

Shorthand for the "border-spacing" CSS property.

borderStyle:String

Shorthand for the "border-style" CSS property.

borderTop:String

Shorthand for the "border-top" CSS property.

borderTopColor:String

Shorthand for the "border-top-color" CSS property.

borderTopLeftRadius:String

Shorthand for the "border-top-left-radius" CSS property.

borderTopRightRadius:String

Shorthand for the "border-top-right-radius" CSS property.

borderTopStyle:String

Shorthand for the "border-top-style" CSS property.

borderTopWidth:String

Shorthand for the "border-top-width" CSS property.

borderWidth:String

Shorthand for the "border-width" CSS property.

bottom:String

Shorthand for the "bottom" CSS property.

boxDecorationBreak:String

Shorthand for the "box-decoration-break" CSS property.

boxShadow:String

Shorthand for the "box-shadow" CSS property.

boxSizing:String

Shorthand for the "box-sizing" CSS property.

boxSnap:String

Shorthand for the "box-snap" CSS property.

boxSuppress:String

Shorthand for the "box-suppress" CSS property.

breakAfter:String

Shorthand for the "break-after" CSS property.

breakBefore:String

Shorthand for the "break-before" CSS property.

breakInside:String

Shorthand for the "break-inside" CSS property.

captionSide:String

Shorthand for the "caption-side" CSS property.

chains:String

Shorthand for the "chains" CSS property.

clear:String

Shorthand for the "clear" CSS property.

clip:String

Shorthand for the "clip" CSS property.

clipPath:String

Shorthand for the "clip-path" CSS property.

clipRule:String

Shorthand for the "clip-rule" CSS property.

color:String

Shorthand for the "color" CSS property.

colorInterpolationFilters:String

Shorthand for the "color-interpolation-filters" CSS property.

columnCount:String

Shorthand for the "column-count" CSS property.

columnFill:String

Shorthand for the "column-fill" CSS property.

columnGap:String

Shorthand for the "column-gap" CSS property.

columnRule:String

Shorthand for the "column-rule" CSS property.

columnRuleColor:String

Shorthand for the "column-rule-color" CSS property.

columnRuleStyle:String

Shorthand for the "column-rule-style" CSS property.

columnRuleWidth:String

Shorthand for the "column-rule-width" CSS property.

columnSpan:String

Shorthand for the "column-span" CSS property.

columnWidth:String

Shorthand for the "column-width" CSS property.

columns:String

Shorthand for the "columns" CSS property.

contain:String

Shorthand for the "contain" CSS property.

content:String

Shorthand for the "content" CSS property.

counterIncrement:String

Shorthand for the "counter-increment" CSS property.

counterReset:String

Shorthand for the "counter-reset" CSS property.

counterSet:String

Shorthand for the "counter-set" CSS property.

crop:String

Shorthand for the "crop" CSS property.

cue:String

Shorthand for the "cue" CSS property.

cueAfter:String

Shorthand for the "cue-after" CSS property.

cueBefore:String

Shorthand for the "cue-before" CSS property.

cursor:String

Shorthand for the "cursor" CSS property.

direction:String

Shorthand for the "direction" CSS property.

display:String

Shorthand for the "display" CSS property.

displayInside:String

Shorthand for the "display-inside" CSS property.

displayList:String

Shorthand for the "display-list" CSS property.

displayOutside:String

Shorthand for the "display-outside" CSS property.

dominantBaseline:String

Shorthand for the "dominant-baseline" CSS property.

elevation:String

Shorthand for the "elevation" CSS property.

emptyCells:String

Shorthand for the "empty-cells" CSS property.

filter:String

Shorthand for the "filter" CSS property.

flex:String

Shorthand for the "flex" CSS property.

flexBasis:String

Shorthand for the "flex-basis" CSS property.

flexDirection:String

Shorthand for the "flex-direction" CSS property.

flexFlow:String

Shorthand for the "flex-flow" CSS property.

flexGrow:String

Shorthand for the "flex-grow" CSS property.

flexShrink:String

Shorthand for the "flex-shrink" CSS property.

flexWrap:String

Shorthand for the "flex-wrap" CSS property.

float:String

Shorthand for the "float" CSS property.

floatOffset:String

Shorthand for the "float-offset" CSS property.

floodColor:String

Shorthand for the "flood-color" CSS property.

floodOpacity:String

Shorthand for the "flood-opacity" CSS property.

flowFrom:String

Shorthand for the "flow-from" CSS property.

flowInto:String

Shorthand for the "flow-into" CSS property.

font:String

Shorthand for the "font" CSS property.

fontFamily:String

Shorthand for the "font-family" CSS property.

fontFeatureSettings:String

Shorthand for the "font-feature-settings" CSS property.

fontKerning:String

Shorthand for the "font-kerning" CSS property.

fontLanguageOverride:String

Shorthand for the "font-language-override" CSS property.

fontSize:String

Shorthand for the "font-size" CSS property.

fontSizeAdjust:String

Shorthand for the "font-size-adjust" CSS property.

fontStretch:String

Shorthand for the "font-stretch" CSS property.

fontStyle:String

Shorthand for the "font-style" CSS property.

fontSynthesis:String

Shorthand for the "font-synthesis" CSS property.

fontVariant:String

Shorthand for the "font-variant" CSS property.

fontVariantAlternates:String

Shorthand for the "font-variant-alternates" CSS property.

fontVariantCaps:String

Shorthand for the "font-variant-caps" CSS property.

fontVariantEastAsian:String

Shorthand for the "font-variant-east-asian" CSS property.

fontVariantLigatures:String

Shorthand for the "font-variant-ligatures" CSS property.

fontVariantNumeric:String

Shorthand for the "font-variant-numeric" CSS property.

fontVariantPosition:String

Shorthand for the "font-variant-position" CSS property.

fontWeight:String

Shorthand for the "font-weight" CSS property.

grid:String

Shorthand for the "grid" CSS property.

gridArea:String

Shorthand for the "grid-area" CSS property.

gridAutoColumns:String

Shorthand for the "grid-auto-columns" CSS property.

gridAutoFlow:String

Shorthand for the "grid-auto-flow" CSS property.

gridAutoRows:String

Shorthand for the "grid-auto-rows" CSS property.

gridColumn:String

Shorthand for the "grid-column" CSS property.

gridColumnEnd:String

Shorthand for the "grid-column-end" CSS property.

gridColumnStart:String

Shorthand for the "grid-column-start" CSS property.

gridRow:String

Shorthand for the "grid-row" CSS property.

gridRowEnd:String

Shorthand for the "grid-row-end" CSS property.

gridRowStart:String

Shorthand for the "grid-row-start" CSS property.

gridTemplate:String

Shorthand for the "grid-template" CSS property.

gridTemplateAreas:String

Shorthand for the "grid-template-areas" CSS property.

gridTemplateColumns:String

Shorthand for the "grid-template-columns" CSS property.

gridTemplateRows:String

Shorthand for the "grid-template-rows" CSS property.

hangingPunctuation:String

Shorthand for the "hanging-punctuation" CSS property.

height:String

Shorthand for the "height" CSS property.

hyphens:String

Shorthand for the "hyphens" CSS property.

icon:String

Shorthand for the "icon" CSS property.

imageOrientation:String

Shorthand for the "image-orientation" CSS property.

imageResolution:String

Shorthand for the "image-resolution" CSS property.

imeMode:String

Shorthand for the "ime-mode" CSS property.

initialLetters:String

Shorthand for the "initial-letters" CSS property.

inlineBoxAlign:String

Shorthand for the "inline-box-align" CSS property.

justifyContent:String

Shorthand for the "justify-content" CSS property.

justifyItems:String

Shorthand for the "justify-items" CSS property.

justifySelf:String

Shorthand for the "justify-self" CSS property.

left:String

Shorthand for the "left" CSS property.

read onlylength:Int

letterSpacing:String

Shorthand for the "letter-spacing" CSS property.

lightingColor:String

Shorthand for the "lighting-color" CSS property.

lineBoxContain:String

Shorthand for the "line-box-contain" CSS property.

lineBreak:String

Shorthand for the "line-break" CSS property.

lineGrid:String

Shorthand for the "line-grid" CSS property.

lineHeight:String

Shorthand for the "line-height" CSS property.

lineSnap:String

Shorthand for the "line-snap" CSS property.

lineStacking:String

Shorthand for the "line-stacking" CSS property.

lineStackingRuby:String

Shorthand for the "line-stacking-ruby" CSS property.

lineStackingShift:String

Shorthand for the "line-stacking-shift" CSS property.

lineStackingStrategy:String

Shorthand for the "line-stacking-strategy" CSS property.

listStyle:String

Shorthand for the "list-style" CSS property.

listStyleImage:String

Shorthand for the "list-style-image" CSS property.

listStylePosition:String

Shorthand for the "list-style-position" CSS property.

listStyleType:String

Shorthand for the "list-style-type" CSS property.

margin:String

Shorthand for the "margin" CSS property.

marginBottom:String

Shorthand for the "margin-bottom" CSS property.

marginLeft:String

Shorthand for the "margin-left" CSS property.

marginRight:String

Shorthand for the "margin-right" CSS property.

marginTop:String

Shorthand for the "margin-top" CSS property.

markerOffset:String

Shorthand for the "marker-offset" CSS property.

markerSide:String

Shorthand for the "marker-side" CSS property.

marks:String

Shorthand for the "marks" CSS property.

mask:String

Shorthand for the "mask" CSS property.

maskBox:String

Shorthand for the "mask-box" CSS property.

maskBoxOutset:String

Shorthand for the "mask-box-outset" CSS property.

maskBoxRepeat:String

Shorthand for the "mask-box-repeat" CSS property.

maskBoxSlice:String

Shorthand for the "mask-box-slice" CSS property.

maskBoxSource:String

Shorthand for the "mask-box-source" CSS property.

maskBoxWidth:String

Shorthand for the "mask-box-width" CSS property.

maskClip:String

Shorthand for the "mask-clip" CSS property.

maskImage:String

Shorthand for the "mask-image" CSS property.

maskOrigin:String

Shorthand for the "mask-origin" CSS property.

maskPosition:String

Shorthand for the "mask-position" CSS property.

maskRepeat:String

Shorthand for the "mask-repeat" CSS property.

maskSize:String

Shorthand for the "mask-size" CSS property.

maskSourceType:String

Shorthand for the "mask-source-type" CSS property.

maskType:String

Shorthand for the "mask-type" CSS property.

maxHeight:String

Shorthand for the "max-height" CSS property.

maxLines:String

Shorthand for the "max-lines" CSS property.

maxWidth:String

Shorthand for the "max-width" CSS property.

minHeight:String

Shorthand for the "min-height" CSS property.

minWidth:String

Shorthand for the "min-width" CSS property.

moveTo:String

Shorthand for the "move-to" CSS property.

navDown:String

Shorthand for the "nav-down" CSS property.

navIndex:String

Shorthand for the "nav-index" CSS property.

navLeft:String

Shorthand for the "nav-left" CSS property.

navRight:String

Shorthand for the "nav-right" CSS property.

navUp:String

Shorthand for the "nav-up" CSS property.

objectFit:String

Shorthand for the "object-fit" CSS property.

objectPosition:String

Shorthand for the "object-position" CSS property.

opacity:String

Shorthand for the "opacity" CSS property.

order:String

Shorthand for the "order" CSS property.

orphans:String

Shorthand for the "orphans" CSS property.

outline:String

Shorthand for the "outline" CSS property.

outlineColor:String

Shorthand for the "outline-color" CSS property.

outlineOffset:String

Shorthand for the "outline-offset" CSS property.

outlineStyle:String

Shorthand for the "outline-style" CSS property.

outlineWidth:String

Shorthand for the "outline-width" CSS property.

overflow:String

Shorthand for the "overflow" CSS property.

overflowWrap:String

Shorthand for the "overflow-wrap" CSS property.

overflowX:String

Shorthand for the "overflow-x" CSS property.

overflowY:String

Shorthand for the "overflow-y" CSS property.

padding:String

Shorthand for the "padding" CSS property.

paddingBottom:String

Shorthand for the "padding-bottom" CSS property.

paddingLeft:String

Shorthand for the "padding-left" CSS property.

paddingRight:String

Shorthand for the "padding-right" CSS property.

paddingTop:String

Shorthand for the "padding-top" CSS property.

page:String

Shorthand for the "page" CSS property.

pageBreakAfter:String

Shorthand for the "page-break-after" CSS property.

pageBreakBefore:String

Shorthand for the "page-break-before" CSS property.

pageBreakInside:String

Shorthand for the "page-break-inside" CSS property.

pagePolicy:String

Shorthand for the "page-policy" CSS property.

pause:String

Shorthand for the "pause" CSS property.

pauseAfter:String

Shorthand for the "pause-after" CSS property.

pauseBefore:String

Shorthand for the "pause-before" CSS property.

perspective:String

Shorthand for the "perspective" CSS property.

perspectiveOrigin:String

Shorthand for the "perspective-origin" CSS property.

pitch:String

Shorthand for the "pitch" CSS property.

pitchRange:String

Shorthand for the "pitch-range" CSS property.

playDuring:String

Shorthand for the "play-during" CSS property.

position:String

Shorthand for the "position" CSS property.

presentationLevel:String

Shorthand for the "presentation-level" CSS property.

quotes:String

Shorthand for the "quotes" CSS property.

regionFragment:String

Shorthand for the "region-fragment" CSS property.

resize:String

Shorthand for the "resize" CSS property.

rest:String

Shorthand for the "rest" CSS property.

restAfter:String

Shorthand for the "rest-after" CSS property.

restBefore:String

Shorthand for the "rest-before" CSS property.

richness:String

Shorthand for the "richness" CSS property.

right:String

Shorthand for the "right" CSS property.

rotation:String

Shorthand for the "rotation" CSS property.

rotationPoint:String

Shorthand for the "rotation-point" CSS property.

rubyAlign:String

Shorthand for the "ruby-align" CSS property.

rubyMerge:String

Shorthand for the "ruby-merge" CSS property.

rubyPosition:String

Shorthand for the "ruby-position" CSS property.

shapeImageThreshold:String

Shorthand for the "shape-image-threshold" CSS property.

shapeMargin:String

Shorthand for the "shape-margin" CSS property.

shapeOutside:String

Shorthand for the "shape-outside" CSS property.

size:String

Shorthand for the "size" CSS property.

speak:String

Shorthand for the "speak" CSS property.

speakAs:String

Shorthand for the "speak-as" CSS property.

speakHeader:String

Shorthand for the "speak-header" CSS property.

speakNumeral:String

Shorthand for the "speak-numeral" CSS property.

speakPunctuation:String

Shorthand for the "speak-punctuation" CSS property.

speechRate:String

Shorthand for the "speech-rate" CSS property.

stress:String

Shorthand for the "stress" CSS property.

stringSet:String

Shorthand for the "string-set" CSS property.

tabSize:String

Shorthand for the "tab-size" CSS property.

tableLayout:String

Shorthand for the "table-layout" CSS property.

textAlign:String

Shorthand for the "text-align" CSS property.

textAlignLast:String

Shorthand for the "text-align-last" CSS property.

textCombineUpright:String

Shorthand for the "text-combine-upright" CSS property.

textDecoration:String

Shorthand for the "text-decoration" CSS property.

textDecorationColor:String

Shorthand for the "text-decoration-color" CSS property.

textDecorationLine:String

Shorthand for the "text-decoration-line" CSS property.

textDecorationSkip:String

Shorthand for the "text-decoration-skip" CSS property.

textDecorationStyle:String

Shorthand for the "text-decoration-style" CSS property.

textEmphasis:String

Shorthand for the "text-emphasis" CSS property.

textEmphasisColor:String

Shorthand for the "text-emphasis-color" CSS property.

textEmphasisPosition:String

Shorthand for the "text-emphasis-position" CSS property.

textEmphasisStyle:String

Shorthand for the "text-emphasis-style" CSS property.

textHeight:String

Shorthand for the "text-height" CSS property.

textIndent:String

Shorthand for the "text-indent" CSS property.

textJustify:String

Shorthand for the "text-justify" CSS property.

textOrientation:String

Shorthand for the "text-orientation" CSS property.

textOverflow:String

Shorthand for the "text-overflow" CSS property.

textShadow:String

Shorthand for the "text-shadow" CSS property.

textSpaceCollapse:String

Shorthand for the "text-space-collapse" CSS property.

textTransform:String

Shorthand for the "text-transform" CSS property.

textUnderlinePosition:String

Shorthand for the "text-underline-position" CSS property.

textWrap:String

Shorthand for the "text-wrap" CSS property.

top:String

Shorthand for the "top" CSS property.

transform:String

Shorthand for the "transform" CSS property.

transformOrigin:String

Shorthand for the "transform-origin" CSS property.

transformStyle:String

Shorthand for the "transform-style" CSS property.

transition:String

Shorthand for the "transition" CSS property.

transitionDelay:String

Shorthand for the "transition-delay" CSS property.

transitionDuration:String

Shorthand for the "transition-duration" CSS property.

transitionProperty:String

Shorthand for the "transition-property" CSS property.

transitionTimingFunction:String

Shorthand for the "transition-timing-function" CSS property.

unicodeBidi:String

Shorthand for the "unicode-bidi" CSS property.

verticalAlign:String

Shorthand for the "vertical-align" CSS property.

visibility:String

Shorthand for the "visibility" CSS property.

voiceBalance:String

Shorthand for the "voice-balance" CSS property.

voiceDuration:String

Shorthand for the "voice-duration" CSS property.

voiceFamily:String

Shorthand for the "voice-family" CSS property.

voicePitch:String

Shorthand for the "voice-pitch" CSS property.

voiceRange:String

Shorthand for the "voice-range" CSS property.

voiceRate:String

Shorthand for the "voice-rate" CSS property.

voiceStress:String

Shorthand for the "voice-stress" CSS property.

voiceVolume:String

Shorthand for the "voice-volume" CSS property.

volume:String

Shorthand for the "volume" CSS property.

whiteSpace:String

Shorthand for the "white-space" CSS property.

widows:String

Shorthand for the "widows" CSS property.

width:String

Shorthand for the "width" CSS property.

willChange:String

Shorthand for the "will-change" CSS property.

wordBreak:String

Shorthand for the "word-break" CSS property.

wordSpacing:String

Shorthand for the "word-spacing" CSS property.

wordWrap:String

Shorthand for the "word-wrap" CSS property.

wrapFlow:String

Shorthand for the "wrap-flow" CSS property.

wrapThrough:String

Shorthand for the "wrap-through" CSS property.

writingMode:String

Shorthand for the "writing-mode" CSS property.

zIndex:String

Shorthand for the "z-index" CSS property.

Methods

getPropertyCSSValue (property:String):CSSValue

Throws:

null

DOMError

getPropertyValue (property:String):String

Throws:

null

DOMError

item (index:Int):String

removeProperty (property:String):String

Throws:

null

DOMError

setProperty (property:String, value:String, priority:String = ""):Void

Throws:

null

DOMError