Skip to content

CSSStyleDeclaration

Types

t

type t = {
mutable cssText: string,
length: int,
parentRule: Null.t<WebAPI.StyleSheet.cssRule>,
mutable cx: string,
mutable cy: string,
mutable r: string,
mutable rx: string,
mutable ry: string,
mutable x: string,
mutable y: string,
mutable vectorEffect: string,
mutable d: string,
mutable textAnchor: string,
mutable fill: string,
mutable stroke: string,
mutable markerStart: string,
mutable markerMid: string,
mutable markerEnd: string,
mutable marker: string,
mutable paintOrder: string,
mutable colorInterpolation: string,
mutable shapeRendering: string,
mutable textRendering: string,
mutable pointerEvents: string,
mutable stopColor: string,
mutable stopOpacity: string,
mutable webkitTextFillColor: string,
mutable webkitTextStrokeColor: string,
mutable webkitTextStrokeWidth: string,
mutable webkitTextStroke: string,
mutable touchAction: string,
mutable positionArea: string,
mutable top: string,
mutable left: string,
mutable right: string,
mutable bottom: string,
mutable justifySelf: string,
mutable alignSelf: string,
mutable justifyItems: string,
mutable alignItems: string,
mutable width: string,
mutable height: string,
mutable minWidth: string,
mutable minHeight: string,
mutable maxWidth: string,
mutable maxHeight: string,
mutable marginTop: string,
mutable marginLeft: string,
mutable marginRight: string,
mutable marginBottom: string,
mutable animationDuration: string,
mutable animationComposition: string,
mutable animationName: string,
mutable animationTimingFunction: string,
mutable animationIterationCount: string,
mutable animationDirection: string,
mutable animationPlayState: string,
mutable animationDelay: string,
mutable animationFillMode: string,
mutable animation: string,
mutable all: string,
mutable containerType: string,
mutable containerName: string,
mutable container: string,
mutable contain: string,
mutable contentVisibility: string,
mutable fontFamily: string,
mutable fontWeight: string,
mutable fontStyle: string,
mutable fontSize: string,
mutable fontSizeAdjust: string,
mutable font: string,
mutable fontSynthesisWeight: string,
mutable fontSynthesisStyle: string,
mutable fontSynthesisSmallCaps: string,
mutable fontSynthesis: string,
mutable fontKerning: string,
mutable fontVariantLigatures: string,
mutable fontVariantPosition: string,
mutable fontVariantCaps: string,
mutable fontVariantNumeric: string,
mutable fontVariantAlternates: string,
mutable fontVariantEastAsian: string,
mutable fontVariant: string,
mutable fontFeatureSettings: string,
mutable fontOpticalSizing: string,
mutable fontVariationSettings: string,
mutable fontPalette: string,
mutable fontStretch: string,
mutable objectFit: string,
mutable clipPath: string,
mutable clipRule: string,
mutable maskImage: string,
mutable maskMode: string,
mutable maskRepeat: string,
mutable maskPosition: string,
mutable maskClip: string,
mutable maskOrigin: string,
mutable maskSize: string,
mutable maskComposite: string,
mutable mask: string,
mutable maskType: string,
mutable transitionBehavior: string,
mutable transitionProperty: string,
mutable transitionDuration: string,
mutable transitionTimingFunction: string,
mutable transitionDelay: string,
mutable transition: string,
mutable viewTransitionName: string,
mutable zoom: string,
mutable filter: string,
mutable colorInterpolationFilters: string,
mutable display: string,
mutable textTransform: string,
mutable mathStyle: string,
mutable mathDepth: string,
mutable zIndex: string,
mutable pageBreakBefore: string,
mutable pageBreakAfter: string,
mutable pageBreakInside: string,
mutable mixBlendMode: string,
mutable isolation: string,
mutable backgroundBlendMode: string,
mutable alignContent: string,
mutable justifyContent: string,
mutable placeContent: string,
mutable placeSelf: string,
mutable placeItems: string,
mutable rowGap: string,
mutable columnGap: string,
mutable gap: string,
mutable backgroundRepeat: string,
mutable backgroundPosition: string,
mutable backgroundPositionX: string,
mutable backgroundPositionY: string,
mutable backgroundClip: string,
mutable backgroundColor: string,
mutable backgroundImage: string,
mutable backgroundAttachment: string,
mutable backgroundOrigin: string,
mutable backgroundSize: string,
mutable background: string,
mutable borderStyle: string,
mutable borderWidth: string,
mutable border: string,
mutable borderImageSource: string,
mutable borderImageSlice: string,
mutable borderImageWidth: string,
mutable borderImageOutset: string,
mutable borderImageRepeat: string,
mutable borderImage: string,
mutable borderTopColor: string,
mutable borderRightColor: string,
mutable borderBottomColor: string,
mutable borderLeftColor: string,
mutable borderBlockStartColor: string,
mutable borderBlockEndColor: string,
mutable borderInlineStartColor: string,
mutable borderInlineEndColor: string,
mutable borderColor: string,
mutable borderBlockColor: string,
mutable borderInlineColor: string,
mutable borderTopStyle: string,
mutable borderRightStyle: string,
mutable borderBottomStyle: string,
mutable borderLeftStyle: string,
mutable borderBlockStartStyle: string,
mutable borderBlockEndStyle: string,
mutable borderInlineStartStyle: string,
mutable borderInlineEndStyle: string,
mutable borderBlockStyle: string,
mutable borderInlineStyle: string,
mutable borderTopWidth: string,
mutable borderRightWidth: string,
mutable borderBottomWidth: string,
mutable borderLeftWidth: string,
mutable borderBlockStartWidth: string,
mutable borderBlockEndWidth: string,
mutable borderInlineStartWidth: string,
mutable borderInlineEndWidth: string,
mutable borderBlockWidth: string,
mutable borderInlineWidth: string,
mutable borderTop: string,
mutable borderRight: string,
mutable borderBottom: string,
mutable borderLeft: string,
mutable borderBlockStart: string,
mutable borderBlockEnd: string,
mutable borderInlineStart: string,
mutable borderInlineEnd: string,
mutable borderBlock: string,
mutable borderInline: string,
mutable borderTopLeftRadius: string,
mutable borderTopRightRadius: string,
mutable borderBottomRightRadius: string,
mutable borderBottomLeftRadius: string,
mutable borderStartStartRadius: string,
mutable borderStartEndRadius: string,
mutable borderEndStartRadius: string,
mutable borderEndEndRadius: string,
mutable borderRadius: string,
mutable boxShadow: string,
mutable margin: string,
mutable paddingTop: string,
mutable paddingRight: string,
mutable paddingBottom: string,
mutable paddingLeft: string,
mutable padding: string,
mutable breakBefore: string,
mutable breakAfter: string,
mutable breakInside: string,
mutable orphans: string,
mutable widows: string,
mutable boxDecorationBreak: string,
mutable colorScheme: string,
mutable forcedColorAdjust: string,
mutable printColorAdjust: string,
mutable color: string,
mutable opacity: string,
mutable content: string,
mutable quotes: string,
mutable order: string,
mutable visibility: string,
mutable flexDirection: string,
mutable flexWrap: string,
mutable flexFlow: string,
mutable flex: string,
mutable flexGrow: string,
mutable flexShrink: string,
mutable flexBasis: string,
mutable position: string,
mutable float: string,
mutable gridTemplateColumns: string,
mutable gridTemplateRows: string,
mutable gridAutoFlow: string,
mutable gridTemplateAreas: string,
mutable gridTemplate: string,
mutable gridAutoColumns: string,
mutable gridAutoRows: string,
mutable grid: string,
mutable gridRowStart: string,
mutable gridColumnStart: string,
mutable gridRowEnd: string,
mutable gridColumnEnd: string,
mutable gridRow: string,
mutable gridColumn: string,
mutable gridArea: string,
mutable objectPosition: string,
mutable imageRendering: string,
mutable dominantBaseline: string,
mutable verticalAlign: string,
mutable lineHeight: string,
mutable listStyleImage: string,
mutable listStyleType: string,
mutable listStylePosition: string,
mutable listStyle: string,
mutable counterReset: string,
mutable counterIncrement: string,
mutable counterSet: string,
mutable blockSize: string,
mutable inlineSize: string,
mutable minBlockSize: string,
mutable minInlineSize: string,
mutable maxBlockSize: string,
mutable maxInlineSize: string,
mutable marginBlockStart: string,
mutable marginBlockEnd: string,
mutable marginInlineStart: string,
mutable marginInlineEnd: string,
mutable marginBlock: string,
mutable marginInline: string,
mutable paddingBlockStart: string,
mutable paddingBlockEnd: string,
mutable paddingInlineStart: string,
mutable paddingInlineEnd: string,
mutable paddingBlock: string,
mutable paddingInline: string,
mutable columnSpan: string,
mutable columnWidth: string,
mutable columnCount: string,
mutable columns: string,
mutable columnRuleColor: string,
mutable columnRuleStyle: string,
mutable columnRuleWidth: string,
mutable columnRule: string,
mutable columnFill: string,
mutable overflowClipMargin: string,
mutable textOverflow: string,
mutable overflowX: string,
mutable overflowY: string,
mutable overflow: string,
mutable scrollBehavior: string,
mutable scrollbarGutter: string,
mutable overscrollBehavior: string,
mutable overscrollBehaviorX: string,
mutable overscrollBehaviorY: string,
mutable overscrollBehaviorInline: string,
mutable overscrollBehaviorBlock: string,
mutable clear: string,
mutable page: string,
mutable insetBlockStart: string,
mutable insetInlineStart: string,
mutable insetBlockEnd: string,
mutable insetInlineEnd: string,
mutable insetBlock: string,
mutable insetInline: string,
mutable inset: string,
mutable rubyPosition: string,
mutable rubyAlign: string,
mutable overflowAnchor: string,
mutable scrollSnapType: string,
mutable scrollPadding: string,
mutable scrollMargin: string,
mutable scrollSnapAlign: string,
mutable scrollSnapStop: string,
mutable scrollPaddingTop: string,
mutable scrollPaddingRight: string,
mutable scrollPaddingBottom: string,
mutable scrollPaddingLeft: string,
mutable scrollPaddingInlineStart: string,
mutable scrollPaddingBlockStart: string,
mutable scrollPaddingInlineEnd: string,
mutable scrollPaddingBlockEnd: string,
mutable scrollPaddingBlock: string,
mutable scrollPaddingInline: string,
mutable scrollMarginTop: string,
mutable scrollMarginRight: string,
mutable scrollMarginBottom: string,
mutable scrollMarginLeft: string,
mutable scrollMarginBlockStart: string,
mutable scrollMarginInlineStart: string,
mutable scrollMarginBlockEnd: string,
mutable scrollMarginInlineEnd: string,
mutable scrollMarginBlock: string,
mutable scrollMarginInline: string,
mutable scrollbarColor: string,
mutable scrollbarWidth: string,
mutable shapeOutside: string,
mutable shapeImageThreshold: string,
mutable shapeMargin: string,
mutable aspectRatio: string,
mutable containIntrinsicWidth: string,
mutable containIntrinsicHeight: string,
mutable containIntrinsicBlockSize: string,
mutable containIntrinsicInlineSize: string,
mutable containIntrinsicSize: string,
mutable boxSizing: string,
mutable tableLayout: string,
mutable borderCollapse: string,
mutable borderSpacing: string,
mutable captionSide: string,
mutable emptyCells: string,
mutable whiteSpace: string,
mutable whiteSpaceCollapse: string,
mutable tabSize: string,
mutable textWrapMode: string,
mutable textWrapStyle: string,
mutable textWrap: string,
mutable wordBreak: string,
mutable lineBreak: string,
mutable hyphens: string,
mutable hyphenateCharacter: string,
mutable overflowWrap: string,
mutable textAlign: string,
mutable textAlignLast: string,
mutable wordSpacing: string,
mutable letterSpacing: string,
mutable textIndent: string,
mutable textDecorationLine: string,
mutable textDecorationStyle: string,
mutable textDecorationColor: string,
mutable textDecorationThickness: string,
mutable textDecoration: string,
mutable textUnderlinePosition: string,
mutable textUnderlineOffset: string,
mutable textDecorationSkipInk: string,
mutable textEmphasisStyle: string,
mutable textEmphasisColor: string,
mutable textEmphasis: string,
mutable textEmphasisPosition: string,
mutable textShadow: string,
mutable translate: string,
mutable rotate: string,
mutable scale: string,
mutable transformStyle: string,
mutable perspective: string,
mutable perspectiveOrigin: string,
mutable backfaceVisibility: string,
mutable transform: string,
mutable transformOrigin: string,
mutable transformBox: string,
mutable outline: string,
mutable outlineWidth: string,
mutable outlineStyle: string,
mutable outlineColor: string,
mutable outlineOffset: string,
mutable resize: string,
mutable cursor: string,
mutable caretColor: string,
mutable userSelect: string,
mutable accentColor: string,
mutable appearance: string,
mutable willChange: string,
mutable direction: string,
mutable unicodeBidi: string,
mutable writingMode: string,
mutable textOrientation: string,
mutable textCombineUpright: string,
mutable fillRule: string,
mutable fillOpacity: string,
mutable strokeWidth: string,
mutable strokeLinecap: string,
mutable strokeLinejoin: string,
mutable strokeMiterlimit: string,
mutable strokeDasharray: string,
mutable strokeDashoffset: string,
mutable strokeOpacity: string,
mutable backdropFilter: string,
mutable offsetPath: string,
mutable offsetDistance: string,
mutable offsetPosition: string,
mutable offsetAnchor: string,
mutable offsetRotate: string,
mutable offset: string,
mutable cssFloat: string,
}

Record fields

cssText
string
vectorEffect
string
textAnchor
string
stroke
string
markerStart
string
markerMid
string
markerEnd
string
marker
string
paintOrder
string
colorInterpolation
string
shapeRendering
string
textRendering
string
pointerEvents
string
stopColor
string
stopOpacity
string
webkitTextFillColor
string
webkitTextStrokeColor
string
webkitTextStrokeWidth
string
webkitTextStroke
string
touchAction
string
positionArea
string
right
string
bottom
string
justifySelf
string
alignSelf
string
justifyItems
string
alignItems
string
width
string
height
string
minWidth
string
minHeight
string
maxWidth
string
maxHeight
string
marginTop
string
marginLeft
string
marginRight
string
marginBottom
string
animationDuration
string
animationComposition
string
animationName
string
animationTimingFunction
string
animationIterationCount
string
animationDirection
string
animationPlayState
string
animationDelay
string
animationFillMode
string
animation
string
containerType
string
containerName
string
container
string
contain
string
contentVisibility
string
fontFamily
string
fontWeight
string
fontStyle
string
fontSize
string
fontSizeAdjust
string
fontSynthesisWeight
string
fontSynthesisStyle
string
fontSynthesisSmallCaps
string
fontSynthesis
string
fontKerning
string
fontVariantLigatures
string
fontVariantPosition
string
fontVariantCaps
string
fontVariantNumeric
string
fontVariantAlternates
string
fontVariantEastAsian
string
fontVariant
string
fontFeatureSettings
string
fontOpticalSizing
string
fontVariationSettings
string
fontPalette
string
fontStretch
string
objectFit
string
clipPath
string
clipRule
string
maskImage
string
maskMode
string
maskRepeat
string
maskPosition
string
maskClip
string
maskOrigin
string
maskSize
string
maskComposite
string
maskType
string
transitionBehavior
string
transitionProperty
string
transitionDuration
string
transitionTimingFunction
string
transitionDelay
string
transition
string
viewTransitionName
string
filter
string
colorInterpolationFilters
string
display
string
textTransform
string
mathStyle
string
mathDepth
string
zIndex
string
pageBreakBefore
string
pageBreakAfter
string
pageBreakInside
string
mixBlendMode
string
isolation
string
backgroundBlendMode
string
alignContent
string
justifyContent
string
placeContent
string
placeSelf
string
placeItems
string
rowGap
string
columnGap
string
backgroundRepeat
string
backgroundPosition
string
backgroundPositionX
string
backgroundPositionY
string
backgroundClip
string
backgroundColor
string
backgroundImage
string
backgroundAttachment
string
backgroundOrigin
string
backgroundSize
string
background
string
borderStyle
string
borderWidth
string
border
string
borderImageSource
string
borderImageSlice
string
borderImageWidth
string
borderImageOutset
string
borderImageRepeat
string
borderImage
string
borderTopColor
string
borderRightColor
string
borderBottomColor
string
borderLeftColor
string
borderBlockStartColor
string
borderBlockEndColor
string
borderInlineStartColor
string
borderInlineEndColor
string
borderColor
string
borderBlockColor
string
borderInlineColor
string
borderTopStyle
string
borderRightStyle
string
borderBottomStyle
string
borderLeftStyle
string
borderBlockStartStyle
string
borderBlockEndStyle
string
borderInlineStartStyle
string
borderInlineEndStyle
string
borderBlockStyle
string
borderInlineStyle
string
borderTopWidth
string
borderRightWidth
string
borderBottomWidth
string
borderLeftWidth
string
borderBlockStartWidth
string
borderBlockEndWidth
string
borderInlineStartWidth
string
borderInlineEndWidth
string
borderBlockWidth
string
borderInlineWidth
string
borderTop
string
borderRight
string
borderBottom
string
borderLeft
string
borderBlockStart
string
borderBlockEnd
string
borderInlineStart
string
borderInlineEnd
string
borderBlock
string
borderInline
string
borderTopLeftRadius
string
borderTopRightRadius
string
borderBottomRightRadius
string
borderBottomLeftRadius
string
borderStartStartRadius
string
borderStartEndRadius
string
borderEndStartRadius
string
borderEndEndRadius
string
borderRadius
string
boxShadow
string
margin
string
paddingTop
string
paddingRight
string
paddingBottom
string
paddingLeft
string
padding
string
breakBefore
string
breakAfter
string
breakInside
string
orphans
string
widows
string
boxDecorationBreak
string
colorScheme
string
forcedColorAdjust
string
printColorAdjust
string
color
string
opacity
string
content
string
quotes
string
order
string
visibility
string
flexDirection
string
flexWrap
string
flexFlow
string
flexGrow
string
flexShrink
string
flexBasis
string
position
string
float
string
gridTemplateColumns
string
gridTemplateRows
string
gridAutoFlow
string
gridTemplateAreas
string
gridTemplate
string
gridAutoColumns
string
gridAutoRows
string
gridRowStart
string
gridColumnStart
string
gridRowEnd
string
gridColumnEnd
string
gridRow
string
gridColumn
string
gridArea
string
objectPosition
string
imageRendering
string
dominantBaseline
string
verticalAlign
string
lineHeight
string
listStyleImage
string
listStyleType
string
listStylePosition
string
listStyle
string
counterReset
string
counterIncrement
string
counterSet
string
blockSize
string
inlineSize
string
minBlockSize
string
minInlineSize
string
maxBlockSize
string
maxInlineSize
string
marginBlockStart
string
marginBlockEnd
string
marginInlineStart
string
marginInlineEnd
string
marginBlock
string
marginInline
string
paddingBlockStart
string
paddingBlockEnd
string
paddingInlineStart
string
paddingInlineEnd
string
paddingBlock
string
paddingInline
string
columnSpan
string
columnWidth
string
columnCount
string
columns
string
columnRuleColor
string
columnRuleStyle
string
columnRuleWidth
string
columnRule
string
columnFill
string
overflowClipMargin
string
textOverflow
string
overflowX
string
overflowY
string
overflow
string
scrollBehavior
string
scrollbarGutter
string
overscrollBehavior
string
overscrollBehaviorX
string
overscrollBehaviorY
string
overscrollBehaviorInline
string
overscrollBehaviorBlock
string
clear
string
insetBlockStart
string
insetInlineStart
string
insetBlockEnd
string
insetInlineEnd
string
insetBlock
string
insetInline
string
inset
string
rubyPosition
string
rubyAlign
string
overflowAnchor
string
scrollSnapType
string
scrollPadding
string
scrollMargin
string
scrollSnapAlign
string
scrollSnapStop
string
scrollPaddingTop
string
scrollPaddingRight
string
scrollPaddingBottom
string
scrollPaddingLeft
string
scrollPaddingInlineStart
string
scrollPaddingBlockStart
string
scrollPaddingInlineEnd
string
scrollPaddingBlockEnd
string
scrollPaddingBlock
string
scrollPaddingInline
string
scrollMarginTop
string
scrollMarginRight
string
scrollMarginBottom
string
scrollMarginLeft
string
scrollMarginBlockStart
string
scrollMarginInlineStart
string
scrollMarginBlockEnd
string
scrollMarginInlineEnd
string
scrollMarginBlock
string
scrollMarginInline
string
scrollbarColor
string
scrollbarWidth
string
shapeOutside
string
shapeImageThreshold
string
shapeMargin
string
aspectRatio
string
containIntrinsicWidth
string
containIntrinsicHeight
string
containIntrinsicBlockSize
string
containIntrinsicInlineSize
string
containIntrinsicSize
string
boxSizing
string
tableLayout
string
borderCollapse
string
borderSpacing
string
captionSide
string
emptyCells
string
whiteSpace
string
whiteSpaceCollapse
string
tabSize
string
textWrapMode
string
textWrapStyle
string
textWrap
string
wordBreak
string
lineBreak
string
hyphens
string
hyphenateCharacter
string
overflowWrap
string
textAlign
string
textAlignLast
string
wordSpacing
string
letterSpacing
string
textIndent
string
textDecorationLine
string
textDecorationStyle
string
textDecorationColor
string
textDecorationThickness
string
textDecoration
string
textUnderlinePosition
string
textUnderlineOffset
string
textDecorationSkipInk
string
textEmphasisStyle
string
textEmphasisColor
string
textEmphasis
string
textEmphasisPosition
string
textShadow
string
translate
string
rotate
string
scale
string
transformStyle
string
perspective
string
perspectiveOrigin
string
backfaceVisibility
string
transform
string
transformOrigin
string
transformBox
string
outline
string
outlineWidth
string
outlineStyle
string
outlineColor
string
outlineOffset
string
resize
string
cursor
string
caretColor
string
userSelect
string
accentColor
string
appearance
string
willChange
string
direction
string
unicodeBidi
string
writingMode
string
textOrientation
string
textCombineUpright
string
fillRule
string
fillOpacity
string
strokeWidth
string
strokeLinecap
string
strokeLinejoin
string
strokeMiterlimit
string
strokeDasharray
string
strokeDashoffset
string
strokeOpacity
string
backdropFilter
string
offsetPath
string
offsetDistance
string
offsetPosition
string
offsetAnchor
string
offsetRotate
string
offset
string
cssFloat
string

Values

getPropertyPriority

let getPropertyPriority: (t, string) => string

Parameters

tstring

Return type

string

getPropertyValue

let getPropertyValue: (t, string) => string

Parameters

tstring

Return type

string

item

let item: (t, int) => string

Parameters

tint

Return type

string

removeProperty

let removeProperty: (t, string) => string

Parameters

tstring

Return type

string

setProperty

let setProperty: (
t,
~property: string,
~value: string,
~priority: string=?,
) => unit

Parameters

tstringstringoption<string>

Return type

unit