Contact emailstcap...@chromium.org

Explainerhttps://github.com/whatwg/html/issues/4654

Specificationhttps://github.com/whatwg/html/pull/8008

Summary

Auto Sizes allows developers to omit the sizes attribute (or set it to
sizes=auto) for lazy loaded image elements with srcset. For this use case
the image's width should be provided. The browser will use the layout width
of the image in order to select the source url from the srcset.


Blink componentBlink>Image
<https://bugs.chromium.org/p/chromium/issues/list?q=component:Blink%3EImage>

Motivation

The layout size information in sizes is redundant with layout information
in CSS, but for images that are critical to initial paint it's necessary to
have the information in the HTML. For lazy-loaded images, CSS will usually
be available before the image load begins. The browser could take the
actual width of the image as specified in CSS, and use that as if it was
the image's sizes.


Initial public proposalhttps://github.com/whatwg/html/issues/4654

Search tagssizes <https://chromestatus.com/features#tags:sizes>, sizes=auto
<https://chromestatus.com/features#tags:sizes=auto>, autosizes
<https://chromestatus.com/features#tags:autosizes>, srcset
<https://chromestatus.com/features#tags:srcset>

TAG review

TAG review statusNot applicable

Risks


Interoperability and Compatibility

None since all major browsers (Chrome, Safari and Firefox) indicate that
they would be willing to implement it.


*Gecko*: Positive (https://github.com/mozilla/standards-positions/issues/650
)

*WebKit*: Positive (https://github.com/WebKit/standards-positions/issues/9)

*Web developers*: No signals

*Other signals*:

WebView application risks

Does this intent deprecate or change behavior of existing APIs, such that
it has potentially high risk for Android WebView-based applications?



Debuggability



Is this feature fully tested by web-platform-tests
<https://chromium.googlesource.com/chromium/src/+/main/docs/testing/web_platform_tests.md>
?Yes

Flag nameImgAutoSizes

Requires code in //chrome?False

Tracking bughttps://bugs.chromium.org/p/chromium/issues/detail?id=1359051

Estimated milestones
DevTrial on desktop 116
DevTrial on Android 116

Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/5191555708616704

Links to previous Intent discussions

This intent message was generated by Chrome Platform Status
<https://chromestatus.com/>.

-- 
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 blink-dev+unsubscr...@chromium.org.
To view this discussion on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAFxahvsRYQ5-a3vA8jsVTXz%2B5A8_pNcL6GziV3hy5qGqF-FTXg%40mail.gmail.com.

Reply via email to