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 CSSFontFaceDescriptors interface represents a CSS declaration block for an @font-face at-rule.
The CSSFontFaceRule interface represents an @font-face at-rule.
The CSSFontFeatureValuesRule interface represents an @font-feature-values at-rule. The values of its instance properties can be accessed with the CSSFontFeatureValuesMap interface.
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 CSS properties that take an value, such as 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 represents the value of a CSS keyword or other identifier.
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 CSSMathClamp interface of the CSS Typed Object Model API represents the CSS clamp() function.
The CSSMathInvert interface of the CSS Typed Object Model API represents the inverse (reciprocal) of a CSSNumericValue.
The CSSMathMax interface of the CSS Typed Object Model API represents the CSS max() function.
The CSSMathMin interface of the CSS Typed Object Model API represents the CSS min() function.
The CSSMathNegate interface of the CSS Typed Object Model API represents the negation of a CSSNumericValue.
The CSSMathProduct interface of the CSS Typed Object Model API represents the product of two or more CSSNumericValue values — in cases where the result can't be represented as a single value.
The CSSMathSum interface of the CSS Typed Object Model API represents the sum of two or more CSSNumericValue values — in cases where the result can't be represented as a single value.
The CSSMathValue interface of the CSS Typed Object Model API is the base interface for objects representing complex numeric values produced by the CSS calc(), min(), max(), and clamp() functions.
The CSSMatrixComponent interface of the CSS Typed Object Model API represents the matrix() and matrix3d() values of the individual transform property in CSS.
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 represents an iterable of CSSNumericValue-based 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.
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 value of a rotation function in the transform property in CSS.
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.
The CSSScopeRule interface of the CSS Object Model represents a CSS @scope at-rule.
The CSSSkew interface of the CSS Typed Object Model API 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.
The CSSSkewY interface of the CSS Typed Object Model API represents the skewY() value of the individual transform property in CSS.
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 the base interface for objects that represent individual transform functions, such as rotate() and scale().
The CSSTransformValue interface of the CSS Typed Object Model API represents transform-list values as used by the CSS transform property. It is an iterable of CSSTransformComponent objects, each representing a single
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.
The CSSUnitValue interface of the CSS Typed Object Model API represents values that contain a single unit type.
The CSSUnparsedValue interface of the CSS Typed Object Model API represents a property value that can't be parsed into a more specific type — typically the value of a custom property.
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 CSSViewTransitionRule interface represents a CSS @view-transition at-rule.
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.getComputedStyle() method returns a live read-only CSSStyleProperties object containing the resolved values of all CSS properties of an element, after applying active stylesheets and resolving any computation those values may contain.
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.