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

I’d like to suggest that HTTP status codes, particularly those commonly encountered in response to GET requests, be associated with some of the pseudo-classes proposed herein and in #3134. They may also inform the selection of some other states that may have frontend presentation, e.g.:

* `:partial` — 206, 416
* `:complete` — 200
* `:broken` — 404, 410
* `:failed` – 401, 402, 403, 406, …; 500
* `:loading` – 30x, before receiving 200 or 40x
* `:stalled` – 503, 504
* `:cached` — 304
* `:redirected` — 300, 301, 302, 307, 308 encountered in the request process, i.e. not mutually exclusive with most of the other pseudoclasses

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


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

Received on Wednesday, 1 February 2023 20:06:19 UTC