Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/web/css/_colon_-moz-broken/index.md
6546 views
---
title: ":-moz-broken" slug: Web/CSS/:-moz-broken page-type: css-pseudo-class status: - non-standard browser-compat: 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