Contact emails
[email protected]

Explainer
No information provided


Specification
No information provided


Summary
Use the `h` descriptor in the `srcset` attribute (so far ignored), as well as 
allowing an explicit object-fit inside `<img sizes>` for eager images, to let 
the browser choose the best source based on the resulting 2D size of the image.


Blink component
Blink>Image


Web Feature ID
sizes-auto


Motivation
<img sizes=auto> currently dictates that the image element keeps a fixed aspect 
ratio. However, a CSS `object-fit` of contain/cover makes it so that the size 
of the image content itself can still be larger/smaller than that, resulting in 
a selected image that may be too big or too small. Allowing the author to also 
specify the height of the *source* (as opposed to the height of the container) 
gives the UA all it needs to pick an optimal source.


Initial public proposal
https://github.com/whatwg/html/issues/11428


Goals for experimentation
None


Requires code in //chrome?
False


Tracking bug
https://issues.chromium.org/issues/572724710


Estimated milestones

No milestones specified



Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5135400531263488?gate=5188686781218816


This intent message was generated by Chrome Platform Status.

-- 
You received this message because you are subscribed to the Google Groups 
"blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/6accde17.6e0b2b3a.151e33.0cfa.GAE%40google.com.

Reply via email to