Re: [csswg-drafts] [css-conditional] [css-contain] `srcset` and `sizes` interaction with container queries (#5889)

> I'd be curious @austinh, does [`sizes=auto`](https://html.spec.whatwg.org/#valdef-sizes-auto) fit your use-case? If not, why not?

It does not for a few reasons:

* art direction : we may want to show a cropped square on smaller screens for example
* hero images - it requires every image to be lazy loaded.
* afaik img sizes="auto" needs to have the width and height up front but we are almost always working with images that are scaled to fill the container and dont know this.

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


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

Received on Wednesday, 18 February 2026 17:08:01 UTC