Re: [csswg-drafts] [selectors-4] additional resource state pseudo-classes for img / picture elements (#7467)

If it is any help for whoever creates the proposal, Firefox has the `:-moz-broken` pseudo-class which could be used as a model for broken images. This allows for the use case of setting a fallback via `content: url()` only when the image fails (as it currently always replaces an element as noted in #2831).

```
img:-moz-broken {
    content: url("placeholder.jpg");
}
```

-- 
GitHub Notification of comment by 06b
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7467#issuecomment-1410855966 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 31 January 2023 18:13:03 UTC