- From: Sam Atkins via GitHub <noreply@w3.org>
- Date: Wed, 14 Jan 2026 11:51:36 +0000
- To: public-css-archive@w3.org
> Though the current solutions _don't_ cover any extra contents that are shown when the image can't be loaded, like a "broken" icon. Providing control over this seems to be the main use case for a pseudo-element to me.
Something like `img:broken { background-image: url("custom-image-instead-of-the-default-one.png"); }` would cover that I think.
My concern with widening what `::placeholder` applies to is that any existing pages with a bare `::placeholder { something }` style rule might have unexpected effects that they don't want to apply to image fallback text.
--
GitHub Notification of comment by AtkinsSJ
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/13345#issuecomment-3749203792 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 14 January 2026 11:51:36 UTC