Intent to Ship: Viewport-height client hint

148 views
Skip to first unread message

Max Curran

unread,
Jun 27, 2022, 4:15:18 PM6/27/22
to blink-dev

Contact emails

ryan...@chromium.org, curr...@chromium.org


Explainer

https://github.com/WICG/responsive-image-client-hints/blob/master/Viewport-Height-Explainer.md


Specification

https://wicg.github.io/responsive-image-client-hints/#sec-ch-viewport-height


Summary

Currently, Responsive Image Client Hints provide a way for origins to obtain the viewport’s width. However, no such attribute exists for viewport height. We’ve observed that to optimize the loading of content that appears in viewport, it is essential for the origins to adapt HTML response based on viewport height.



Blink component

Blink>Loader


TAG review

https://github.com/w3ctag/design-reviews/issues/615


TAG review status

Issues addressed


Link to origin trial feedback summary

https://github.com/WICG/responsive-image-client-hints/issues


Risks



Interoperability and Compatibility



Gecko: No signal (https://github.com/mozilla/standards-positions/issues/79)


WebKit: Negative (https://lists.webkit.org/pipermail/webkit-dev/2020-November/031576.html) Likely to be neutral based on discussion in https://github.com/mozilla/standards-positions/issues/79


Web developers: No signals


Other signals:


Activation

None



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

N/A



Will this feature be supported on all six Blink platforms (Windows, Mac, Linux, Chrome OS, Android, and Android WebView)?

Yes


Is this feature fully tested by web-platform-tests?

Yes


Flag name

kViewportHeightClientHintHeader


Requires code in //chrome?

False


Tracking bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1184863


Launch bug

https://bugs.chromium.org/p/chromium/issues/detail?id=1184862


Estimated milestones

OriginTrial desktop last

104

OriginTrial desktop first

100


OriginTrial Android last

104

OriginTrial Android first

100





Anticipated spec changes

Open questions about a feature may be a source of future web compat or interop issues. Please list open issues (e.g. links to known github issues in the project for the feature specification) whose resolution may introduce web compat/interop risk (e.g., changing to naming or structure of the API in a non-backward-compatible way).



Link to entry on the Chrome Platform Status

https://chromestatus.com/feature/5646861215989760


Links to previous Intent discussions

Intent to Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/Q2wcqY2UyNs/m/rPePdX_NBwAJ

Intent to Extend Experiment: https://groups.google.com/a/chromium.org/g/blink-dev/c/kftmeKVDjE8/m/GlaCr5PYEQAJ



This intent message was generated by Chrome Platform Status.

Daniel Bratell

unread,
Jun 29, 2022, 11:13:38 AM6/29/22
to Max Curran, blink-dev

What was the result of the origin trial? Did you get any useful feedback?

/Daniel

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

Max Curran

unread,
Jun 30, 2022, 12:59:26 PM6/30/22
to blink-dev, Daniel Bratell, Max Curran
Our partners found the feature useful and want to see it launched.

Mike Taylor

unread,
Jun 30, 2022, 4:32:02 PM6/30/22
to Max Curran, blink-dev, Daniel Bratell
Thanks for the update.

LGTM1 to ship. This seems like a useful addition to the Viewport-Width hint.

Chris Harrelson

unread,
Jun 30, 2022, 4:33:06 PM6/30/22
to Mike Taylor, Max Curran, blink-dev, Daniel Bratell

Yoav Weiss

unread,
Jun 30, 2022, 4:38:09 PM6/30/22
to Chris Harrelson, Mike Taylor, Max Curran, blink-dev, Daniel Bratell

Joe Medley

unread,
Jul 11, 2022, 11:06:47 AM7/11/22
to Yoav Weiss, Chris Harrelson, Mike Taylor, Max Curran, blink-dev, Daniel Bratell
Is this shipping in 105?
Joe Medley | Technical Writer, Chrome DevRel | jme...@google.com | 816-678-7195
If an API's not documented it doesn't exist.


Max Curran

unread,
Jul 12, 2022, 1:06:47 PM7/12/22
to Joe Medley, Yoav Weiss, Chris Harrelson, Mike Taylor, blink-dev, Daniel Bratell
Yes, the plan is to ship in 105
Reply all
Reply to author
Forward
0 new messages