Firefox Tomorrow

css pseudo class

`:-moz-broken` CSS pseudo-class

View on MDN ↗

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="/firefox/mdn-asset-missing.svg" alt="This image is broken. :-(" />

CSS

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

Result

Interactive exampleOpen the canonical MDN source to run this embedded demo.

Specifications

Not part of any standard.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.

See also