API reference
Preparing search index…

ComputedValuesView

Read-only live view of an element’s computed style.

Refresh layout with Context.update before reading. Structured getters return independent copies. Access rejects after the element is destroyed or the runtime shuts down.

interface ComputedValuesView {
    alignContent: AlignContent;
    alignItems: AlignItems;
    alignSelf: AlignSelf;
    animation: null | AnimationList;
    backgroundColor: VariantByteColour;
    borderBottomColor: VariantByteColour;
    borderBottomLeftRadius: number;
    borderBottomRightRadius: number;
    borderBottomWidth: number;
    borderLeftColor: VariantByteColour;
    borderLeftWidth: number;
    borderRadius: CornerSizes;
    borderRightColor: VariantByteColour;
    borderRightWidth: number;
    borderTopColor: VariantByteColour;
    borderTopLeftRadius: number;
    borderTopRightRadius: number;
    borderTopWidth: number;
    bottom: LengthPercentageAuto;
    boxSizing: BoxSizing;
    clear: Clear;
    clip: Clip;
    color: VariantByteColour;
    columnGap: LengthPercentage;
    cursor: string;
    direction: Direction;
    display: Display;
    drag: Drag;
    flexBasis: LengthPercentageAuto;
    flexDirection: FlexDirection;
    flexGrow: number;
    flexShrink: number;
    flexWrap: FlexWrap;
    float: Float;
    focus: Focus;
    fontFaceHandle: null | FontFaceHandle;
    fontFamily: string;
    fontKerning: FontKerning;
    fontSize: number;
    fontStyle: Style.FontStyle;
    fontWeight: number;
    hasBackdropFilter: boolean;
    hasBoxShadow: boolean;
    hasDecorator: boolean;
    hasFilter: boolean;
    hasFontEffect: boolean;
    hasLocalPerspective: boolean;
    hasLocalTransform: boolean;
    hasMaskImage: boolean;
    height: LengthPercentageAuto;
    imageColor: VariantByteColour;
    justifyContent: JustifyContent;
    language: string;
    left: LengthPercentageAuto;
    letterSpacing: number;
    lineHeight: LineHeight;
    marginBottom: LengthPercentageAuto;
    marginLeft: LengthPercentageAuto;
    marginRight: LengthPercentageAuto;
    marginTop: LengthPercentageAuto;
    maxHeight: LengthPercentage;
    maxWidth: LengthPercentage;
    minHeight: LengthPercentage;
    minWidth: LengthPercentage;
    opacity: number;
    overflowX: Overflow;
    overflowY: Overflow;
    overscrollBehavior: OverscrollBehavior;
    paddingBottom: LengthPercentage;
    paddingLeft: LengthPercentage;
    paddingRight: LengthPercentage;
    paddingTop: LengthPercentage;
    perspective: number;
    perspectiveOriginX: LengthPercentage;
    perspectiveOriginY: LengthPercentage;
    pointerEvents: PointerEvents;
    position: Position;
    right: LengthPercentageAuto;
    rowGap: LengthPercentage;
    scrollbarMargin: number;
    tabIndex: TabIndex;
    textAlign: TextAlign;
    textDecoration: TextDecoration;
    textOverflow: TextOverflow;
    textOverflowString: string;
    textTransform: TextTransform;
    top: LengthPercentageAuto;
    transform: null | TransformSnapshot;
    transformOriginX: LengthPercentage;
    transformOriginY: LengthPercentage;
    transformOriginZ: number;
    transition: null | TransitionList;
    verticalAlign: VerticalAlign;
    visibility: Visibility;
    whiteSpace: WhiteSpace;
    width: LengthPercentageAuto;
    wordBreak: WordBreak;
    zIndex: NumberAuto;
}
Source & inheritance
Member directory98

Properties

Properties

alignContent: AlignContent

The computed flex line alignment.

Current native value; structured values are independent copies.

Source & inheritance
alignItems: AlignItems

The computed default flex item alignment.

Current native value; structured values are independent copies.

Source & inheritance
alignSelf: AlignSelf

The computed individual flex item alignment.

Current native value; structured values are independent copies.

Source & inheritance
animation: null | AnimationList

The computed keyframe animation list.

Current native value; structured values are independent copies.

Source & inheritance
backgroundColor: VariantByteColour

The computed background RGBA colour.

Current native value; structured values are independent copies.

Source & inheritance
borderBottomColor: VariantByteColour

The computed bottom border RGBA colour.

Current native value; structured values are independent copies.

Source & inheritance
borderBottomLeftRadius: number

The computed bottom left corner radius in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderBottomRightRadius: number

The computed bottom right corner radius in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderBottomWidth: number

The computed bottom border width in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderLeftColor: VariantByteColour

The computed left border RGBA colour.

Current native value; structured values are independent copies.

Source & inheritance
borderLeftWidth: number

The computed left border width in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderRadius: CornerSizes

The computed corner radius in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderRightColor: VariantByteColour

The computed right border RGBA colour.

Current native value; structured values are independent copies.

Source & inheritance
borderRightWidth: number

The computed right border width in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderTopColor: VariantByteColour

The computed top border RGBA colour.

Current native value; structured values are independent copies.

Source & inheritance
borderTopLeftRadius: number

The computed top left corner radius in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderTopRightRadius: number

The computed top right corner radius in pixels.

Current native value; structured values are independent copies.

Source & inheritance
borderTopWidth: number

The computed top border width in pixels.

Current native value; structured values are independent copies.

Source & inheritance

The computed bottom position offset.

Current native value; structured values are independent copies.

Source & inheritance
boxSizing: BoxSizing

The computed size calculation box.

Current native value; structured values are independent copies.

Source & inheritance
clear: Clear

The computed float clearance.

Current native value; structured values are independent copies.

Source & inheritance
clip: Clip

The computed ancestor clipping control.

Current native value; structured values are independent copies.

Source & inheritance

The computed text RGBA colour.

Current native value; structured values are independent copies.

Source & inheritance
columnGap: LengthPercentage

The computed gap between columns.

Current native value; structured values are independent copies.

Source & inheritance
cursor: string

The computed cursor name.

Current native value; structured values are independent copies.

Source & inheritance
direction: Direction

The computed text reading direction.

Current native value; structured values are independent copies.

Source & inheritance
display: Display

The computed layout box generation.

Current native value; structured values are independent copies.

Source & inheritance
drag: Drag

The computed drag interaction.

Current native value; structured values are independent copies.

Source & inheritance

The computed initial flex size.

Current native value; structured values are independent copies.

Source & inheritance
flexDirection: FlexDirection

The computed flex main axis direction.

Current native value; structured values are independent copies.

Source & inheritance
flexGrow: number

The computed flex growth factor.

Current native value; structured values are independent copies.

Source & inheritance
flexShrink: number

The computed flex shrink factor.

Current native value; structured values are independent copies.

Source & inheritance
flexWrap: FlexWrap

The computed flex line wrapping.

Current native value; structured values are independent copies.

Source & inheritance
float: Float

The computed float placement.

Current native value; structured values are independent copies.

Source & inheritance
focus: Focus

The computed focus eligibility.

Current native value; structured values are independent copies.

Source & inheritance
fontFaceHandle: null | FontFaceHandle

The computed resolved font face handle.

Current native value; structured values are independent copies.

Source & inheritance
fontFamily: string

The computed font family selection.

Current native value; structured values are independent copies.

Source & inheritance
fontKerning: FontKerning

The computed font kerning.

Current native value; structured values are independent copies.

Source & inheritance
fontSize: number

The computed font size in pixels.

Current native value; structured values are independent copies.

Source & inheritance
fontStyle: Style.FontStyle

The computed font slant.

Current native value; structured values are independent copies.

Source & inheritance
fontWeight: number

The computed font weight.

Current native value; structured values are independent copies.

Source & inheritance
hasBackdropFilter: boolean

The computed whether backdrop filter list is present.

Current native value; structured values are independent copies.

Source & inheritance
hasBoxShadow: boolean

The computed whether box shadows is present.

Current native value; structured values are independent copies.

Source & inheritance
hasDecorator: boolean

The computed whether decorator layers is present.

Current native value; structured values are independent copies.

Source & inheritance
hasFilter: boolean

The computed whether element filter list is present.

Current native value; structured values are independent copies.

Source & inheritance
hasFontEffect: boolean

The computed whether font effects is present.

Current native value; structured values are independent copies.

Source & inheritance
hasLocalPerspective: boolean

The computed whether local perspective distance in pixels is present.

Current native value; structured values are independent copies.

Source & inheritance
hasLocalTransform: boolean

The computed whether local transform is present.

Current native value; structured values are independent copies.

Source & inheritance
hasMaskImage: boolean

The computed whether mask image layers is present.

Current native value; structured values are independent copies.

Source & inheritance

The computed height.

Current native value; structured values are independent copies.

Source & inheritance
imageColor: VariantByteColour

The computed image RGBA tint.

Current native value; structured values are independent copies.

Source & inheritance
justifyContent: JustifyContent

The computed flex main axis alignment.

Current native value; structured values are independent copies.

Source & inheritance
language: string

The computed text language tag.

Current native value; structured values are independent copies.

Source & inheritance

The computed left position offset.

Current native value; structured values are independent copies.

Source & inheritance
letterSpacing: number

The computed extra letter spacing in pixels.

Current native value; structured values are independent copies.

Source & inheritance
lineHeight: LineHeight

The computed line height.

Current native value; structured values are independent copies.

Source & inheritance
marginBottom: LengthPercentageAuto

The computed bottom outer spacing.

Current native value; structured values are independent copies.

Source & inheritance

The computed left outer spacing.

Current native value; structured values are independent copies.

Source & inheritance

The computed right outer spacing.

Current native value; structured values are independent copies.

Source & inheritance

The computed top outer spacing.

Current native value; structured values are independent copies.

Source & inheritance
maxHeight: LengthPercentage

The computed maximum height.

Current native value; structured values are independent copies.

Source & inheritance

The computed maximum width.

Current native value; structured values are independent copies.

Source & inheritance
minHeight: LengthPercentage

The computed minimum height.

Current native value; structured values are independent copies.

Source & inheritance

The computed minimum width.

Current native value; structured values are independent copies.

Source & inheritance
opacity: number

The computed opacity multiplier.

Current native value; structured values are independent copies.

Source & inheritance
overflowX: Overflow

The computed horizontal overflow handling.

Current native value; structured values are independent copies.

Source & inheritance
overflowY: Overflow

The computed vertical overflow handling.

Current native value; structured values are independent copies.

Source & inheritance
overscrollBehavior: OverscrollBehavior

The computed scroll chaining.

Current native value; structured values are independent copies.

Source & inheritance
paddingBottom: LengthPercentage

The computed bottom inner spacing.

Current native value; structured values are independent copies.

Source & inheritance
paddingLeft: LengthPercentage

The computed left inner spacing.

Current native value; structured values are independent copies.

Source & inheritance
paddingRight: LengthPercentage

The computed right inner spacing.

Current native value; structured values are independent copies.

Source & inheritance
paddingTop: LengthPercentage

The computed top inner spacing.

Current native value; structured values are independent copies.

Source & inheritance
perspective: number

The computed perspective distance in pixels.

Current native value; structured values are independent copies.

Source & inheritance
perspectiveOriginX: LengthPercentage

The computed horizontal perspective origin.

Current native value; structured values are independent copies.

Source & inheritance
perspectiveOriginY: LengthPercentage

The computed vertical perspective origin.

Current native value; structured values are independent copies.

Source & inheritance
pointerEvents: PointerEvents

The computed pointer hit testing.

Current native value; structured values are independent copies.

Source & inheritance
position: Position

The computed positioning scheme.

Current native value; structured values are independent copies.

Source & inheritance

The computed right position offset.

Current native value; structured values are independent copies.

Source & inheritance

The computed gap between rows.

Current native value; structured values are independent copies.

Source & inheritance
scrollbarMargin: number

The computed scrollbar margin in pixels.

Current native value; structured values are independent copies.

Source & inheritance
tabIndex: TabIndex

The computed sequential keyboard focus.

Current native value; structured values are independent copies.

Source & inheritance
textAlign: TextAlign

The computed text horizontal alignment.

Current native value; structured values are independent copies.

Source & inheritance
textDecoration: TextDecoration

The computed text decoration line.

Current native value; structured values are independent copies.

Source & inheritance
textOverflow: TextOverflow

The computed text overflow marker.

Current native value; structured values are independent copies.

Source & inheritance
textOverflowString: string

The computed custom text overflow string.

Current native value; structured values are independent copies.

Source & inheritance
textTransform: TextTransform

The computed text case conversion.

Current native value; structured values are independent copies.

Source & inheritance

The computed top position offset.

Current native value; structured values are independent copies.

Source & inheritance
transform: null | TransformSnapshot

The computed transform.

Current native value; structured values are independent copies.

Source & inheritance
transformOriginX: LengthPercentage

The computed horizontal transform origin.

Current native value; structured values are independent copies.

Source & inheritance
transformOriginY: LengthPercentage

The computed vertical transform origin.

Current native value; structured values are independent copies.

Source & inheritance
transformOriginZ: number

The computed depth transform origin.

Current native value; structured values are independent copies.

Source & inheritance
transition: null | TransitionList

The computed property transition list.

Current native value; structured values are independent copies.

Source & inheritance
verticalAlign: VerticalAlign

The computed inline vertical alignment.

Current native value; structured values are independent copies.

Source & inheritance
visibility: Visibility

The computed visibility.

Current native value; structured values are independent copies.

Source & inheritance
whiteSpace: WhiteSpace

The computed whitespace and wrapping.

Current native value; structured values are independent copies.

Source & inheritance

The computed width.

Current native value; structured values are independent copies.

Source & inheritance
wordBreak: WordBreak

The computed word breaking.

Current native value; structured values are independent copies.

Source & inheritance
zIndex: NumberAuto

The computed stacking order.

Current native value; structured values are independent copies.

Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0