Package-level declarations

Types

Link copied to clipboard

The ContentVisibilityAutoStateChangeEvent interface is the event object for the element/contentvisibilityautostatechange_event event, which fires on any element with content-visibility set on it when it starts or stops being relevant to the user and skipping its contents.

Link copied to clipboard
object CSS
Link copied to clipboard

The CSSAnimation interface of the Web Animations API represents an Animation object.

Link copied to clipboard

An object implementing the CSSConditionRule interface represents a single condition CSS at-rule, which consists of a condition and a statement block.

Link copied to clipboard

The CSSContainerRule interface represents a single CSS @container rule.

Link copied to clipboard

The CSSCounterStyleRule interface represents an @counter-style at-rule.

Link copied to clipboard

The CSSFontFaceRule interface represents an @font-face at-rule.

Link copied to clipboard

The CSSFontFeatureValuesRule interface represents an @font-feature-values at-rule, letting developers assign for each font face a common name to specify features indices to be used in font-variant-alternates.

Link copied to clipboard

The CSSFontPaletteValuesRule interface represents an @font-palette-values at-rule.

Link copied to clipboard

The CSSGroupingRule interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.

Link copied to clipboard

The CSSImageValue interface of the CSS Typed Object Model API represents values for properties that take an image, for example background-image, list-style-image, or border-image-source.

Link copied to clipboard

The CSSImportRule interface represents an @import at-rule.

Link copied to clipboard

The CSSKeyframeRule interface describes an object representing a set of styles for a given keyframe.

Link copied to clipboard

The CSSKeyframesRule interface describes an object representing a complete set of keyframes for a CSS animation.

Link copied to clipboard
typealias CSSKeywordish = JsAny
Link copied to clipboard
open class CSSKeywordValue(var value: String) : CSSStyleValue

The CSSKeywordValue interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.

Link copied to clipboard

The CSSLayerBlockRule represents a @layer block rule.

Link copied to clipboard

The CSSLayerStatementRule represents a @layer statement rule.

Link copied to clipboard
open class CSSMathClamp(lower: CSSNumberish, value: CSSNumberish, upper: CSSNumberish) : CSSMathValue
Link copied to clipboard

The CSSMathInvert interface of the CSS Typed Object Model API represents a CSS calc used as calc(1 / <value>).

Link copied to clipboard
open class CSSMathMax(values: CSSNumberish) : CSSMathValue

The CSSMathMax interface of the CSS Typed Object Model API represents the CSS max function.

Link copied to clipboard
open class CSSMathMin(values: CSSNumberish) : CSSMathValue

The CSSMathMin interface of the CSS Typed Object Model API represents the CSS min function.

Link copied to clipboard

The CSSMathNegate interface of the CSS Typed Object Model API negates the value passed into it.

Link copied to clipboard
sealed interface CSSMathOperator
Link copied to clipboard

The CSSMathProduct interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.

Link copied to clipboard
open class CSSMathSum(values: CSSNumberish) : CSSMathValue

The CSSMathSum interface of the CSS Typed Object Model API represents the result obtained by calling CSSNumericValue.add, CSSNumericValue.sub, or CSSNumericValue.toSum on CSSNumericValue.

Link copied to clipboard

The CSSMathValue interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.

Link copied to clipboard
open class CSSMatrixComponent(matrix: DOMMatrixReadOnly, options: CSSMatrixComponentOptions = definedExternally) : CSSTransformComponent

The CSSMatrixComponent interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.

Link copied to clipboard
Link copied to clipboard

The CSSMediaRule interface represents a single CSS @media rule.

Link copied to clipboard

The CSSNamespaceRule interface describes an object representing a single CSS @namespace at-rule.

Link copied to clipboard

The CSSNestedDeclarations interface of the CSS Rule API is used to group nested CSSRules.

Link copied to clipboard
typealias CSSNumberish = JsAny
Link copied to clipboard

The CSSNumericArray interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.

Link copied to clipboard
sealed interface CSSNumericBaseType
Link copied to clipboard
interface CSSNumericType
Link copied to clipboard

The CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.

Link copied to clipboard

CSSPageRule represents a single CSS @page rule.

Link copied to clipboard

The CSSPerspective interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS.

Link copied to clipboard
Link copied to clipboard

The CSSPropertyRule interface of the CSS Properties and Values API represents a single CSS @property rule.

Link copied to clipboard
open class CSSRotate(var x: CSSNumberish, var y: CSSNumberish, var z: CSSNumberish, var angle: CSSNumericValue) : CSSTransformComponent

The CSSRotate interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS.

Link copied to clipboard
open class CSSRule

The CSSRule interface represents a single CSS rule.

Link copied to clipboard

A CSSRuleList represents an ordered collection of read-only CSSRule objects.

Link copied to clipboard
open class CSSScale(var x: CSSNumberish, var y: CSSNumberish, var z: CSSNumberish = definedExternally) : CSSTransformComponent

The CSSScale interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS.

Link copied to clipboard

The CSSScopeRule interface of the CSS Object Model represents a CSS @scope at-rule.

Link copied to clipboard

The CSSSkew interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.

Link copied to clipboard

The CSSSkewX interface of the CSS Typed Object Model API represents the skewX() value of the individual transform property in CSS.

Link copied to clipboard

The CSSSkewY interface of the CSS Typed Object Model API represents the skewY() value of the individual transform property in CSS.

Link copied to clipboard

The CSSStartingStyleRule interface of the CSS Object Model represents a CSS @starting-style at-rule.

Link copied to clipboard

The CSSStyleDeclaration interface represents an object that is a CSS declaration block, and exposes style information and various style-related methods and properties.

Link copied to clipboard

The CSSStyleRule interface represents a single CSS style rule.

Link copied to clipboard
open class CSSStyleSheet(options: CSSStyleSheetInit = definedExternally) : StyleSheet

The CSSStyleSheet interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet.

Link copied to clipboard
Link copied to clipboard
open class CSSStyleValue

The CSSStyleValue interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API.

Link copied to clipboard

The CSSSupportsRule interface represents a single CSS @supports at-rule.

Link copied to clipboard

The CSSTransformComponent interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.

Link copied to clipboard

The CSSTransformValue interface of the CSS Typed Object Model API represents transform-list values as used by the CSS transform property.

Link copied to clipboard

The CSSTransition interface of the Web Animations API represents an Animation object used for a CSS Transition.

Link copied to clipboard
open class CSSTranslate(var x: CSSNumericValue, var y: CSSNumericValue, var z: CSSNumericValue = definedExternally) : CSSTransformComponent

The CSSTranslate interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS.

Link copied to clipboard
open class CSSUnitValue(var value: Double, val unit: String) : CSSNumericValue

The CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type.

Link copied to clipboard
Link copied to clipboard

The CSSUnparsedValue interface of the CSS Typed Object Model API represents property values that reference custom properties.

Link copied to clipboard
open class CSSVariableReferenceValue(var variable: String, val fallback: CSSUnparsedValue? = definedExternally)

The CSSVariableReferenceValue interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface LinkStyle
Link copied to clipboard

The MediaList interface represents the media queries of a stylesheet, e.g., those set using a link element's media attribute.

Link copied to clipboard

A MediaQueryList object stores information on a media query applied to a document, with support for both immediate and event-driven matching against the state of the document.

Link copied to clipboard
open class MediaQueryListEvent(val type: EventType<MediaQueryListEvent>, init: MediaQueryListEventInit = definedExternally) : Event

The MediaQueryListEvent object stores information on the changes that have happened to a MediaQueryList object — instances are available as the event object on a function referenced by a MediaQueryList.change_event event.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The StylePropertyMap interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.

Link copied to clipboard

The StylePropertyMapReadOnly interface of the CSS Typed Object Model API provides a read-only representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.

Link copied to clipboard
open class StyleSheet

An object implementing the StyleSheet interface represents a single style sheet.

Link copied to clipboard

The StyleSheetList interface represents a list of CSSStyleSheet objects.

Link copied to clipboard
open class TransitionEvent(val type: EventType<TransitionEvent>, init: TransitionEventInit = definedExternally) : Event

The TransitionEvent interface represents events providing information related to transitions.

Link copied to clipboard

Functions

Link copied to clipboard
external fun matchMedia(query: MediaQuery): MediaQueryList

The Window interface's matchMedia() method returns a new MediaQueryList object that can then be used to determine if the document matches the media query string, as well as to monitor the document to detect when it matches (or stops matching) that media query.