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

A few issues:

1. One thing about some of these pseudo-class proposal, similar to what we had with `::picker(select)`. If we add them to images now, we can't use those names for other things in the future, because e.g. stylesheets would have `:loading` scattered around which would now gain new meaning. This is not a deal breaker, but perhaps it should be `:loading-image` or some such?

2. Feels like "non-OK status" and "broken" are different. e.g. if we've received a default image for our 404 request it's different from a corrupt request or invalid URL.
 
3. Another issue relating to the above is that we can't tell what the HTTP status code is for cross-origin no-cors images. This means this selector cannot differentiate between "successful" and "default image with a 404 response".

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


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

Received on Wednesday, 5 November 2025 11:55:47 UTC