Package-level declarations
Types
The ContentVisibilityAutoStateChangeEvent interface is the event object for the contentvisibilityautostatechange event, which fires on any element with content-visibility: auto set on it when it starts or stops being relevant to the user and skipping its contents.
The CSSAnimation interface of the Web Animations API represents an Animation object.
An object implementing the CSSConditionRule interface represents a single condition CSS at-rule, which consists of a condition and a statement block.
The CSSContainerRule interface represents a single CSS @container rule.
The CSSCounterStyleRule interface represents an @counter-style at-rule.
The CSSFontFaceRule interface represents an @font-face at-rule.
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.
The CSSFontPaletteValuesRule interface represents an @font-palette-values at-rule.
The CSSGroupingRule interface of the CSS Object Model represents any CSS at-rule that contains other rules nested within it.
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.
The CSSImportRule interface represents an @import at-rule.
The CSSKeyframeRule interface describes an object representing a set of styles for a given keyframe. It corresponds to the contents of a single keyframe of a @keyframes at-rule.
The CSSKeyframesRule interface describes an object representing a complete set of keyframes for a CSS animation. It corresponds to the contents of a whole @keyframes at-rule.
The CSSKeywordValue interface of the CSS Typed Object Model API creates an object to represent CSS keywords and other identifiers.
The CSSLayerBlockRule represents a @layer block rule.
The CSSLayerStatementRule represents a @layer statement rule. Unlike CSSLayerBlockRule, it doesn't contain other rules and merely defines one or several layers by providing their names.
The CSSMathInvert interface of the CSS Typed Object Model API represents a CSS calc() used as calc(1 /
The CSSMathMax interface of the CSS Typed Object Model API represents the CSS max() function. It inherits properties and methods from its parent CSSNumericValue.
The CSSMathMin interface of the CSS Typed Object Model API represents the CSS min() function. It inherits properties and methods from its parent CSSNumericValue.
The CSSMathNegate interface of the CSS Typed Object Model API negates the value passed into it. It inherits properties and methods from its parent CSSNumericValue.
The CSSMathProduct interface of the CSS Typed Object Model API represents the result obtained by calling add(), sub(), or toSum() on CSSNumericValue. It inherits properties and methods from its parent CSSNumericValue.
The CSSMathSum interface of the CSS Typed Object Model API represents the result obtained by calling add(), sub(), or toSum() on CSSNumericValue.
The CSSMathValue interface of the CSS Typed Object Model API a base class for classes representing complex numeric values.
The CSSMatrixComponent interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
The CSSMediaRule interface represents a single CSS @media rule.
The CSSNamespaceRule interface describes an object representing a single CSS @namespace at-rule.
The CSSNestedDeclarations interface of the CSS Rule API is used to group nested CSSRules.
The CSSNumericArray interface of the CSS Typed Object Model API contains a list of CSSNumericValue objects.
The CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
The CSSPageDescriptors interface represents a CSS declaration block for an @page at-rule.
CSSPageRule represents a single CSS @page rule.
The CSSPerspective interface of the CSS Typed Object Model API represents the perspective() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
The CSSPositionTryDescriptors interface defines properties that represent the list of CSS descriptors that can be set in the body of a @position-try at-rule.
The CSSPositionTryRule interface describes an object representing a @position-try at-rule.
The CSSPropertyRule interface of the CSS Properties and Values API represents a single CSS @property rule.
The CSSRotate interface of the CSS Typed Object Model API represents the rotate value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
A CSSRuleList represents an ordered collection of read-only CSSRule objects.
The CSSScale interface of the CSS Typed Object Model API represents the scale() and scale3d() values of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
The CSSScopeRule interface of the CSS Object Model represents a CSS @scope at-rule.
The CSSSkew interface of the CSS Typed Object Model API is part of the CSSTransformValue interface. It represents the skew() value of the individual transform property in CSS.
The CSSSkewX interface of the CSS Typed Object Model API represents the skewX() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
The CSSSkewY interface of the CSS Typed Object Model API represents the skewY() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
The CSSStartingStyleRule interface of the CSS Object Model represents a CSS @starting-style at-rule.
The CSSStyleDeclaration interface is the base class for objects that represent CSS declaration blocks with different supported sets of CSS style information:
The CSSStyleProperties interface of the CSS Object Model (CSSOM) represents inline or computed styles available on an element, or the styles associated with a CSS style rule.
The CSSStyleRule interface represents a single CSS style rule.
The CSSStyleSheet interface represents a single CSS stylesheet, and lets you inspect and modify the list of rules contained in the stylesheet. It inherits properties and methods from its parent, StyleSheet.
The CSSStyleValue interface of the CSS Typed Object Model API is the base class of all CSS values accessible through the Typed OM API. An instance of this class may be used anywhere a string is expected.
The CSSSupportsRule interface represents a single CSS @supports at-rule.
The CSSTransformComponent interface of the CSS Typed Object Model API is part of the CSSTransformValue interface.
The CSSTransformValue interface of the CSS Typed Object Model API represents transform-list values as used by the CSS transform property.
The CSSTransition interface of the Web Animations API represents an Animation object used for a CSS Transition.
The CSSTranslate interface of the CSS Typed Object Model API represents the translate() value of the individual transform property in CSS. It inherits properties and methods from its parent CSSTransformValue.
The CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type. For example, "42px" would be represented by a CSSNumericValue.
The CSSUnparsedValue interface of the CSS Typed Object Model API represents property values that reference custom properties. It consists of a list of string fragments and variable references.
The CSSVariableReferenceValue interface of the CSS Typed Object Model API allows you to create a custom name for a built-in CSS value. This object functionality is sometimes called a "CSS variable" and serves the same purpose as the var() function. The custom name must begin with two dashes.
The MediaList interface represents the media queries of a stylesheet, e.g., those set using a element's media attribute.
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.
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 change event.
The StylePropertyMap interface of the CSS Typed Object Model API provides a representation of a CSS declaration block that is an alternative to CSSStyleDeclaration.
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. Retrieve an instance of this interface using Element.computedStyleMap().
An object implementing the StyleSheet interface represents a single style sheet. CSS style sheets will further implement the more specialized CSSStyleSheet interface.
The StyleSheetList interface represents a list of CSSStyleSheet objects. An instance of this object can be returned by Document.styleSheets.
The TransitionEvent interface represents events providing information related to transitions.
Properties
Functions
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.
The replace() method of the CSSStyleSheet interface asynchronously replaces the content of the stylesheet with the content passed into it. The method returns a promise that resolves with the CSSStyleSheet object.