An object that is a CSS declaration block, and exposes style information and various style-related methods and properties.

Hierarchy

  • CSSStyleDeclaration

Indexable

[index: number]: string

Properties

accentColor alignContent alignItems alignSelf alignmentBaseline all animation animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction appearance aspectRatio backfaceVisibility background backgroundAttachment backgroundBlendMode backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize baselineShift blockSize border borderBlock borderBlockColor borderBlockEnd borderBlockEndColor borderBlockEndStyle borderBlockEndWidth borderBlockStart borderBlockStartColor borderBlockStartStyle borderBlockStartWidth borderBlockStyle borderBlockWidth borderBottom borderBottomColor borderBottomLeftRadius borderBottomRightRadius borderBottomStyle borderBottomWidth borderCollapse borderColor borderEndEndRadius borderEndStartRadius borderImage borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderInline borderInlineColor borderInlineEnd borderInlineEndColor borderInlineEndStyle borderInlineEndWidth borderInlineStart borderInlineStartColor borderInlineStartStyle borderInlineStartWidth borderInlineStyle borderInlineWidth borderLeft borderLeftColor borderLeftStyle borderLeftWidth borderRadius borderRight borderRightColor borderRightStyle borderRightWidth borderSpacing borderStartEndRadius borderStartStartRadius borderStyle borderTop borderTopColor borderTopLeftRadius borderTopRightRadius borderTopStyle borderTopWidth borderWidth bottom boxShadow boxSizing breakAfter breakBefore breakInside captionSide caretColor clear clip clipPath clipRule color colorInterpolation colorInterpolationFilters colorScheme columnCount columnFill columnGap columnRule columnRuleColor columnRuleStyle columnRuleWidth columnSpan columnWidth columns contain content contentVisibility counterIncrement counterReset counterSet cssFloat cssText cursor direction display dominantBaseline emptyCells fill fillOpacity fillRule filter flex flexBasis flexDirection flexFlow flexGrow flexShrink flexWrap float floodColor floodOpacity font fontFamily fontFeatureSettings fontKerning fontOpticalSizing fontSize fontSizeAdjust fontStretch fontStyle fontSynthesis fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontVariationSettings fontWeight gap grid gridArea gridAutoColumns gridAutoFlow gridAutoRows gridColumn gridColumnEnd gridColumnGap gridColumnStart gridGap gridRow gridRowEnd gridRowGap gridRowStart gridTemplate gridTemplateAreas gridTemplateColumns gridTemplateRows height hyphens imageOrientation imageRendering inlineSize inset insetBlock insetBlockEnd insetBlockStart insetInline insetInlineEnd insetInlineStart isolation justifyContent justifyItems justifySelf left length letterSpacing lightingColor lineBreak lineHeight listStyle listStyleImage listStylePosition listStyleType margin marginBlock marginBlockEnd marginBlockStart marginBottom marginInline marginInlineEnd marginInlineStart marginLeft marginRight marginTop marker markerEnd markerMid markerStart mask maskClip maskComposite maskImage maskMode maskOrigin maskPosition maskRepeat maskSize maskType maxBlockSize maxHeight maxInlineSize maxWidth minBlockSize minHeight minInlineSize minWidth mixBlendMode objectFit objectPosition offset offsetDistance offsetPath offsetRotate opacity order orphans outline outlineColor outlineOffset outlineStyle outlineWidth overflow overflowAnchor overflowWrap overflowX overflowY overscrollBehavior overscrollBehaviorBlock overscrollBehaviorInline overscrollBehaviorX overscrollBehaviorY padding paddingBlock paddingBlockEnd paddingBlockStart paddingBottom paddingInline paddingInlineEnd paddingInlineStart paddingLeft paddingRight paddingTop pageBreakAfter pageBreakBefore pageBreakInside paintOrder parentRule perspective perspectiveOrigin placeContent placeItems placeSelf pointerEvents position printColorAdjust quotes resize right rotate rowGap rubyPosition scale scrollBehavior scrollMargin scrollMarginBlock scrollMarginBlockEnd scrollMarginBlockStart scrollMarginBottom scrollMarginInline scrollMarginInlineEnd scrollMarginInlineStart scrollMarginLeft scrollMarginRight scrollMarginTop scrollPadding scrollPaddingBlock scrollPaddingBlockEnd scrollPaddingBlockStart scrollPaddingBottom scrollPaddingInline scrollPaddingInlineEnd scrollPaddingInlineStart scrollPaddingLeft scrollPaddingRight scrollPaddingTop scrollSnapAlign scrollSnapStop scrollSnapType scrollbarGutter shapeImageThreshold shapeMargin shapeOutside shapeRendering stopColor stopOpacity stroke strokeDasharray strokeDashoffset strokeLinecap strokeLinejoin strokeMiterlimit strokeOpacity strokeWidth tabSize tableLayout textAlign textAlignLast textAnchor textCombineUpright textDecoration textDecorationColor textDecorationLine textDecorationSkipInk textDecorationStyle textDecorationThickness textEmphasis textEmphasisColor textEmphasisPosition textEmphasisStyle textIndent textOrientation textOverflow textRendering textShadow textTransform textUnderlineOffset textUnderlinePosition top touchAction transform transformBox transformOrigin transformStyle transition transitionDelay transitionDuration transitionProperty transitionTimingFunction translate unicodeBidi userSelect verticalAlign visibility webkitAlignContent webkitAlignItems webkitAlignSelf webkitAnimation webkitAnimationDelay webkitAnimationDirection webkitAnimationDuration webkitAnimationFillMode webkitAnimationIterationCount webkitAnimationName webkitAnimationPlayState webkitAnimationTimingFunction webkitAppearance webkitBackfaceVisibility webkitBackgroundClip webkitBackgroundOrigin webkitBackgroundSize webkitBorderBottomLeftRadius webkitBorderBottomRightRadius webkitBorderRadius webkitBorderTopLeftRadius webkitBorderTopRightRadius webkitBoxAlign webkitBoxFlex webkitBoxOrdinalGroup webkitBoxOrient webkitBoxPack webkitBoxShadow webkitBoxSizing webkitFilter webkitFlex webkitFlexBasis webkitFlexDirection webkitFlexFlow webkitFlexGrow webkitFlexShrink webkitFlexWrap webkitJustifyContent webkitLineClamp webkitMask webkitMaskBoxImage webkitMaskBoxImageOutset webkitMaskBoxImageRepeat webkitMaskBoxImageSlice webkitMaskBoxImageSource webkitMaskBoxImageWidth webkitMaskClip webkitMaskComposite webkitMaskImage webkitMaskOrigin webkitMaskPosition webkitMaskRepeat webkitMaskSize webkitOrder webkitPerspective webkitPerspectiveOrigin webkitTextFillColor webkitTextStroke webkitTextStrokeColor webkitTextStrokeWidth webkitTransform webkitTransformOrigin webkitTransformStyle webkitTransition webkitTransitionDelay webkitTransitionDuration webkitTransitionProperty webkitTransitionTimingFunction webkitUserSelect whiteSpace widows width willChange wordBreak wordSpacing wordWrap writingMode zIndex

Methods

Properties

accentColor: string
alignContent: string
alignItems: string
alignSelf: string
alignmentBaseline: string
all: string
animation: string
animationDelay: string
animationDirection: string
animationDuration: string
animationFillMode: string
animationIterationCount: string
animationName: string
animationPlayState: string
animationTimingFunction: string
appearance: string
aspectRatio: string
backfaceVisibility: string
background: string
backgroundAttachment: string
backgroundBlendMode: string
backgroundClip: string
backgroundColor: string
backgroundImage: string
backgroundOrigin: string
backgroundPosition: string
backgroundPositionX: string
backgroundPositionY: string
backgroundRepeat: string
backgroundSize: string
baselineShift: string
blockSize: string
border: string
borderBlock: string
borderBlockColor: string
borderBlockEnd: string
borderBlockEndColor: string
borderBlockEndStyle: string
borderBlockEndWidth: string
borderBlockStart: string
borderBlockStartColor: string
borderBlockStartStyle: string
borderBlockStartWidth: string
borderBlockStyle: string
borderBlockWidth: string
borderBottom: string
borderBottomColor: string
borderBottomLeftRadius: string
borderBottomRightRadius: string
borderBottomStyle: string
borderBottomWidth: string
borderCollapse: string
borderColor: string
borderEndEndRadius: string
borderEndStartRadius: string
borderImage: string
borderImageOutset: string
borderImageRepeat: string
borderImageSlice: string
borderImageSource: string
borderImageWidth: string
borderInline: string
borderInlineColor: string
borderInlineEnd: string
borderInlineEndColor: string
borderInlineEndStyle: string
borderInlineEndWidth: string
borderInlineStart: string
borderInlineStartColor: string
borderInlineStartStyle: string
borderInlineStartWidth: string
borderInlineStyle: string
borderInlineWidth: string
borderLeft: string
borderLeftColor: string
borderLeftStyle: string
borderLeftWidth: string
borderRadius: string
borderRight: string
borderRightColor: string
borderRightStyle: string
borderRightWidth: string
borderSpacing: string
borderStartEndRadius: string
borderStartStartRadius: string
borderStyle: string
borderTop: string
borderTopColor: string
borderTopLeftRadius: string
borderTopRightRadius: string
borderTopStyle: string
borderTopWidth: string
borderWidth: string
bottom: string
boxShadow: string
boxSizing: string
breakAfter: string
breakBefore: string
breakInside: string
captionSide: string
caretColor: string
clear: string
clip: string

Deprecated

clipPath: string
clipRule: string
color: string
colorInterpolation: string
colorInterpolationFilters: string
colorScheme: string
columnCount: string
columnFill: string
columnGap: string
columnRule: string
columnRuleColor: string
columnRuleStyle: string
columnRuleWidth: string
columnSpan: string
columnWidth: string
columns: string
contain: string
content: string
contentVisibility: string
counterIncrement: string
counterReset: string
counterSet: string
cssFloat: string
cssText: string
cursor: string
direction: string
display: string
dominantBaseline: string
emptyCells: string
fill: string
fillOpacity: string
fillRule: string
filter: string
flex: string
flexBasis: string
flexDirection: string
flexFlow: string
flexGrow: string
flexShrink: string
flexWrap: string
float: string
floodColor: string
floodOpacity: string
font: string
fontFamily: string
fontFeatureSettings: string
fontKerning: string
fontOpticalSizing: string
fontSize: string
fontSizeAdjust: string
fontStretch: string
fontStyle: string
fontSynthesis: string
fontVariant: string
fontVariantAlternates: string
fontVariantCaps: string
fontVariantEastAsian: string
fontVariantLigatures: string
fontVariantNumeric: string
fontVariantPosition: string
fontVariationSettings: string
fontWeight: string
gap: string
grid: string
gridArea: string
gridAutoColumns: string
gridAutoFlow: string
gridAutoRows: string
gridColumn: string
gridColumnEnd: string
gridColumnGap: string

Deprecated

This is a legacy alias of columnGap.

gridColumnStart: string
gridGap: string

Deprecated

This is a legacy alias of gap.

gridRow: string
gridRowEnd: string
gridRowGap: string

Deprecated

This is a legacy alias of rowGap.

gridRowStart: string
gridTemplate: string
gridTemplateAreas: string
gridTemplateColumns: string
gridTemplateRows: string
height: string
hyphens: string
imageOrientation: string

Deprecated

imageRendering: string
inlineSize: string
inset: string
insetBlock: string
insetBlockEnd: string
insetBlockStart: string
insetInline: string
insetInlineEnd: string
insetInlineStart: string
isolation: string
justifyContent: string
justifyItems: string
justifySelf: string
left: string
length: number
letterSpacing: string
lightingColor: string
lineBreak: string
lineHeight: string
listStyle: string
listStyleImage: string
listStylePosition: string
listStyleType: string
margin: string
marginBlock: string
marginBlockEnd: string
marginBlockStart: string
marginBottom: string
marginInline: string
marginInlineEnd: string
marginInlineStart: string
marginLeft: string
marginRight: string
marginTop: string
marker: string
markerEnd: string
markerMid: string
markerStart: string
mask: string
maskClip: string
maskComposite: string
maskImage: string
maskMode: string
maskOrigin: string
maskPosition: string
maskRepeat: string
maskSize: string
maskType: string
maxBlockSize: string
maxHeight: string
maxInlineSize: string
maxWidth: string
minBlockSize: string
minHeight: string
minInlineSize: string
minWidth: string
mixBlendMode: string
objectFit: string
objectPosition: string
offset: string
offsetDistance: string
offsetPath: string
offsetRotate: string
opacity: string
order: string
orphans: string
outline: string
outlineColor: string
outlineOffset: string
outlineStyle: string
outlineWidth: string
overflow: string
overflowAnchor: string
overflowWrap: string
overflowX: string
overflowY: string
overscrollBehavior: string
overscrollBehaviorBlock: string
overscrollBehaviorInline: string
overscrollBehaviorX: string
overscrollBehaviorY: string
padding: string
paddingBlock: string
paddingBlockEnd: string
paddingBlockStart: string
paddingBottom: string
paddingInline: string
paddingInlineEnd: string
paddingInlineStart: string
paddingLeft: string
paddingRight: string
paddingTop: string
pageBreakAfter: string
pageBreakBefore: string
pageBreakInside: string
paintOrder: string
parentRule: null | <internal>.CSSRule
perspective: string
perspectiveOrigin: string
placeContent: string
placeItems: string
placeSelf: string
pointerEvents: string
position: string
printColorAdjust: string
quotes: string
resize: string
right: string
rotate: string
rowGap: string
rubyPosition: string
scale: string
scrollBehavior: string
scrollMargin: string
scrollMarginBlock: string
scrollMarginBlockEnd: string
scrollMarginBlockStart: string
scrollMarginBottom: string
scrollMarginInline: string
scrollMarginInlineEnd: string
scrollMarginInlineStart: string
scrollMarginLeft: string
scrollMarginRight: string
scrollMarginTop: string
scrollPadding: string
scrollPaddingBlock: string
scrollPaddingBlockEnd: string
scrollPaddingBlockStart: string
scrollPaddingBottom: string
scrollPaddingInline: string
scrollPaddingInlineEnd: string
scrollPaddingInlineStart: string
scrollPaddingLeft: string
scrollPaddingRight: string
scrollPaddingTop: string
scrollSnapAlign: string
scrollSnapStop: string
scrollSnapType: string
scrollbarGutter: string
shapeImageThreshold: string
shapeMargin: string
shapeOutside: string
shapeRendering: string
stopColor: string
stopOpacity: string
stroke: string
strokeDasharray: string
strokeDashoffset: string
strokeLinecap: string
strokeLinejoin: string
strokeMiterlimit: string
strokeOpacity: string
strokeWidth: string
tabSize: string
tableLayout: string
textAlign: string
textAlignLast: string
textAnchor: string
textCombineUpright: string
textDecoration: string
textDecorationColor: string
textDecorationLine: string
textDecorationSkipInk: string
textDecorationStyle: string
textDecorationThickness: string
textEmphasis: string
textEmphasisColor: string
textEmphasisPosition: string
textEmphasisStyle: string
textIndent: string
textOrientation: string
textOverflow: string
textRendering: string
textShadow: string
textTransform: string
textUnderlineOffset: string
textUnderlinePosition: string
top: string
touchAction: string
transform: string
transformBox: string
transformOrigin: string
transformStyle: string
transition: string
transitionDelay: string
transitionDuration: string
transitionProperty: string
transitionTimingFunction: string
translate: string
unicodeBidi: string
userSelect: string
verticalAlign: string
visibility: string
webkitAlignContent: string

Deprecated

This is a legacy alias of alignContent.

webkitAlignItems: string

Deprecated

This is a legacy alias of alignItems.

webkitAlignSelf: string

Deprecated

This is a legacy alias of alignSelf.

webkitAnimation: string

Deprecated

This is a legacy alias of animation.

webkitAnimationDelay: string

Deprecated

This is a legacy alias of animationDelay.

webkitAnimationDirection: string

Deprecated

This is a legacy alias of animationDirection.

webkitAnimationDuration: string

Deprecated

This is a legacy alias of animationDuration.

webkitAnimationFillMode: string

Deprecated

This is a legacy alias of animationFillMode.

webkitAnimationIterationCount: string

Deprecated

This is a legacy alias of animationIterationCount.

webkitAnimationName: string

Deprecated

This is a legacy alias of animationName.

webkitAnimationPlayState: string

Deprecated

This is a legacy alias of animationPlayState.

webkitAnimationTimingFunction: string

Deprecated

This is a legacy alias of animationTimingFunction.

webkitAppearance: string

Deprecated

This is a legacy alias of appearance.

webkitBackfaceVisibility: string

Deprecated

This is a legacy alias of backfaceVisibility.

webkitBackgroundClip: string

Deprecated

This is a legacy alias of backgroundClip.

webkitBackgroundOrigin: string

Deprecated

This is a legacy alias of backgroundOrigin.

webkitBackgroundSize: string

Deprecated

This is a legacy alias of backgroundSize.

webkitBorderBottomLeftRadius: string

Deprecated

This is a legacy alias of borderBottomLeftRadius.

webkitBorderBottomRightRadius: string

Deprecated

This is a legacy alias of borderBottomRightRadius.

webkitBorderRadius: string

Deprecated

This is a legacy alias of borderRadius.

webkitBorderTopLeftRadius: string

Deprecated

This is a legacy alias of borderTopLeftRadius.

webkitBorderTopRightRadius: string

Deprecated

This is a legacy alias of borderTopRightRadius.

webkitBoxAlign: string

Deprecated

This is a legacy alias of boxAlign.

webkitBoxFlex: string

Deprecated

This is a legacy alias of boxFlex.

webkitBoxOrdinalGroup: string

Deprecated

This is a legacy alias of boxOrdinalGroup.

webkitBoxOrient: string

Deprecated

This is a legacy alias of boxOrient.

webkitBoxPack: string

Deprecated

This is a legacy alias of boxPack.

webkitBoxShadow: string

Deprecated

This is a legacy alias of boxShadow.

webkitBoxSizing: string

Deprecated

This is a legacy alias of boxSizing.

webkitFilter: string

Deprecated

This is a legacy alias of filter.

webkitFlex: string

Deprecated

This is a legacy alias of flex.

webkitFlexBasis: string

Deprecated

This is a legacy alias of flexBasis.

webkitFlexDirection: string

Deprecated

This is a legacy alias of flexDirection.

webkitFlexFlow: string

Deprecated

This is a legacy alias of flexFlow.

webkitFlexGrow: string

Deprecated

This is a legacy alias of flexGrow.

webkitFlexShrink: string

Deprecated

This is a legacy alias of flexShrink.

webkitFlexWrap: string

Deprecated

This is a legacy alias of flexWrap.

webkitJustifyContent: string

Deprecated

This is a legacy alias of justifyContent.

webkitLineClamp: string
webkitMask: string

Deprecated

This is a legacy alias of mask.

webkitMaskBoxImage: string

Deprecated

This is a legacy alias of maskBorder.

webkitMaskBoxImageOutset: string

Deprecated

This is a legacy alias of maskBorderOutset.

webkitMaskBoxImageRepeat: string

Deprecated

This is a legacy alias of maskBorderRepeat.

webkitMaskBoxImageSlice: string

Deprecated

This is a legacy alias of maskBorderSlice.

webkitMaskBoxImageSource: string

Deprecated

This is a legacy alias of maskBorderSource.

webkitMaskBoxImageWidth: string

Deprecated

This is a legacy alias of maskBorderWidth.

webkitMaskClip: string

Deprecated

This is a legacy alias of maskClip.

webkitMaskComposite: string
webkitMaskImage: string

Deprecated

This is a legacy alias of maskImage.

webkitMaskOrigin: string

Deprecated

This is a legacy alias of maskOrigin.

webkitMaskPosition: string

Deprecated

This is a legacy alias of maskPosition.

webkitMaskRepeat: string

Deprecated

This is a legacy alias of maskRepeat.

webkitMaskSize: string

Deprecated

This is a legacy alias of maskSize.

webkitOrder: string

Deprecated

This is a legacy alias of order.

webkitPerspective: string

Deprecated

This is a legacy alias of perspective.

webkitPerspectiveOrigin: string

Deprecated

This is a legacy alias of perspectiveOrigin.

webkitTextFillColor: string
webkitTextStroke: string
webkitTextStrokeColor: string
webkitTextStrokeWidth: string
webkitTransform: string

Deprecated

This is a legacy alias of transform.

webkitTransformOrigin: string

Deprecated

This is a legacy alias of transformOrigin.

webkitTransformStyle: string

Deprecated

This is a legacy alias of transformStyle.

webkitTransition: string

Deprecated

This is a legacy alias of transition.

webkitTransitionDelay: string

Deprecated

This is a legacy alias of transitionDelay.

webkitTransitionDuration: string

Deprecated

This is a legacy alias of transitionDuration.

webkitTransitionProperty: string

Deprecated

This is a legacy alias of transitionProperty.

webkitTransitionTimingFunction: string

Deprecated

This is a legacy alias of transitionTimingFunction.

webkitUserSelect: string

Deprecated

This is a legacy alias of userSelect.

whiteSpace: string
widows: string
width: string
willChange: string
wordBreak: string
wordSpacing: string
wordWrap: string

Deprecated

writingMode: string
zIndex: string

Methods

  • Parameters

    • property: string

    Returns string

  • Parameters

    • property: string

    Returns string

  • Parameters

    • index: number

    Returns string

  • Parameters

    • property: string

    Returns string

  • Parameters

    • property: string
    • value: null | string
    • Optional priority: string

    Returns void

Generated using TypeDoc