Hi Steve,

Thanks for the info - would you mind filing a bug at https://bugs.chromium.org/p/chromium/issues/entry?components=Blink%3ENetwork%3EClientHints?

thanks,
Mike

On 12/16/22 3:53 PM, 'Steve Kamerman' via blink-dev wrote:
Hi all,

I've been testing client hints and I noticed that the *viewport-width* and *dpr *hints are not the same in all contexts.  The page itself, first-party subresources, third-party subresources and third-party images all get potentially different values on the same device.  I've tested this on Chome Dekstop 108 and Chrome Mobile 108.

Here's the test page that I've written: https://cute-easy-flag.glitch.me/

Note that the *viewport *meta tag is not enabled by default, but you can enable it at the bottom (along with *accept-ch, critical-ch and delegate-ch* so you get all the hints).

In particular, the "*First Party*" and "*Third-Party Image*" tests do not match the other two.  I don't know if this is a math problem (failing to consider the DPR, for example), or what.

The attached images show the results on my Samsung Galaxy S21 Ultra 5G and Chrome Desktop.

We rely on the accuracy of these values, particularly in the "*Third-Party Image*" context, to optimize images within our Image CDN.

According to my understanding, the values in my screenshots must be a bug since it is impossible to recompute the actual width of the viewport in pixels.

Thanks,

Steve Kamerman
--
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 on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/26b38f6a-6ccc-4311-ae92-465c251526adn%40chromium.org <https://groups.google.com/a/chromium.org/d/msgid/blink-dev/26b38f6a-6ccc-4311-ae92-465c251526adn%40chromium.org?utm_medium=email&utm_source=footer>.

--
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 on the web visit 
https://groups.google.com/a/chromium.org/d/msgid/blink-dev/508cd920-3953-778d-94c7-142126e6086b%40chromium.org.

Reply via email to