Firefox Tomorrow

css pseudo class

`:-moz-loading` CSS pseudo-class

View on MDN ↗

The :-moz-loading CSS pseudo-class is a Mozilla extension that matches elements that can’t be displayed because they have not started loading, such as images that haven’t started to arrive yet. Note that images that are in the process of loading are not matched by this pseudo-class.

[!NOTE] This selector is mainly intended to be used by theme developers.

Syntax

:-moz-loading {
  /* ... */
}

Examples

Setting a background for images that are loading

:-moz-loading {
  background: url("loading-animation.gif") center no-repeat;
}

Specifications

Not part of any standard.

See also