:stalled

A selector that matches a media element (like <video> or <audio>) when it tries to fetch data but can't because of a slow network or connection issues.

/* Usage Example */
video:stalled {
  /* Shows a loading state or adds a semi-transparent overlay when the video buffers */
  opacity: 0.5;
  transition: opacity 0.3s;
}
Limited availability Since 2020 13% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

15.4+
Kinsta

Your first month is free

Managed WordPress hosting for faster sites.

Learn more

New CSS drops.

Join 600+ readers who've survived clearfix hacks.

ESC