Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 998 Bytes

File metadata and controls

56 lines (38 loc) · 998 Bytes
title slug page-type status browser-compat
:-moz-broken
Web/CSS/:-moz-broken
css-pseudo-class
non-standard
css.selectors.-moz-broken

{{CSSRef}}{{Non-standard_header}}

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

{{EmbedLiveSample("Examples")}}

Specifications

Not part of any standard.

Browser compatibility

{{Compat}}

See also

  • {{cssxref(":-moz-loading")}}, {{cssxref(":-moz-suppressed")}}, {{cssxref(":-moz-user-disabled")}}
  • Firefox bug 11011