pseudo-class

:-moz-broken — CSS reference

Nonstandard Gecko selector for historical broken resource state. Use meaningful alt text and an explicit error state updated by resource events.

Formal Syntax & Structure

css syntaxcss
img:-moz-broken

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>:-moz-broken</title><style>body{margin:0;background:white}#a{box-sizing:border-box}body{color:black}img:-moz-broken{color:red}img[data-failed]{color:rgb(0,128,0)}</style><body><img id="a" data-failed alt="Image unavailable"></body></html>
CSS Reference