MDN self-hosted library · e01.org

`:-moz-broken` CSS pseudo-class

The :-moz-broken CSS pseudo-class is a Mozilla extension that matches elements representing broken image links.

The :-moz-broken CSS pseudo-class is a Mozilla extension that matches elements representing broken image links.

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

Syntax

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

Examples

HTML

<img src="broken.jpg" alt="This image is broken. :-(" />

CSS

:-moz-broken {
  background: bisque;
  padding: 8px;
}

Result

Examples

Specifications

Not part of any standard.

Browser compatibility

See also