:-moz-loading

Non-standard: This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

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

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

Examples

Setting a background for images that are loading

css
:-moz-loading {
  background-color: #aaa;
  background-image: url(loading-animation.gif) center no-repeat;
}

Specifications

Not part of any standard.

See also