Spec-Zone.ru › CSS

`update` CSS media feature

Baseline Widely available

This feature is well established and works across many devices and browser versions. It's been available across browsers since September 2023.

The update CSS media feature can be used to test how frequently (if at all) the output device is able to modify the appearance of content once rendered.

Syntax

none
Once it has been rendered, the layout can no longer be updated. Example: documents printed on paper.
slow
The layout may change dynamically according to the usual rules of CSS, but the output device is not able to render or display changes quickly enough for them to be perceived as a smooth animation. Examples: e-book readers or severely underpowered devices.
fast
The layout may change dynamically according to the usual rules of CSS, and the output device is not unusually constrained in speed, so regularly-updating things like CSS Animations can be used. Example: computer screens.

Examples

HTML

<p>
  If this text animates for you, your browser supports `update` and you are
  using a fast-updating device.
</p>

CSS

@keyframes jiggle {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(25px);
  }
}

@media (update: fast) {
  p {
    animation: 1s jiggle linear alternate infinite;
  }
}

Result

Specifications

Specification
Media Queries Level 4
# update

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on iOS Samsung Internet WebView Android WebView on iOS
update
113
113
102
99
17
113
102
76
17
23.0
113
17

See also

  • Using Media Queries
  • @media

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/At-rules/@media/update

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API