content icon indicating copy to clipboard operation
content copied to clipboard

Add standard names for Device Client hints

Open tunetheweb opened this issue 1 week ago • 5 comments

Description

  • Copies the device client hints to new docs with their standard Sec-CH names.
  • Adds Sec-CH-Viewport-Height page.
  • Prefers the Sec-CH- variants to their old names.

Motivation

Fix developer confusion: https://bsky.app/profile/ericportis.com/post/3m7oa4vo5fk2q

Additional details

Device-Memory, DPR and Width were added in Chrome 97: https://chromestatus.com/feature/6658223894429696 (note Device-Memory was not noted there)

Height was added in Chrome 105: https://chromestatus.com/feature/5646861215989760

Related issues and pull requests

BCD changes: https://github.com/mdn/browser-compat-data/pull/28636

tunetheweb avatar Dec 11 '25 12:12 tunetheweb

Preview URLs (14 pages)
Flaws (6)

Note! 12 documents with no flaws that don't need to be listed. 🎉

URL: /en-US/docs/Web/HTTP/Reference/Headers Title: HTTP headers Flaw count: 3

  • macros:
    • Macro httpheader produces link /en-US/docs/Web/HTTP/Reference/Headers/Accept-Signature which doesn't resolve
    • Macro httpheader produces link /en-US/docs/Web/HTTP/Reference/Headers/Signature which doesn't resolve
    • Macro httpheader produces link /en-US/docs/Web/HTTP/Reference/Headers/Signed-Headers which doesn't resolve

URL: /en-US/docs/Web/HTTP/Reference/Headers/Viewport-Width Title: Viewport-Width header Flaw count: 3

  • unknown:
    • No generic content config found
    • no blog root
    • no blog root
External URLs (4)

URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-Device-Memory Title: Sec-CH-Device-Memory header


URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-DPR Title: Sec-CH-DPR header


URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-Viewport-Height Title: Sec-CH-Viewport-Height header


URL: /en-US/docs/Web/HTTP/Reference/Headers/Sec-CH-Viewport-Width Title: Sec-CH-Viewport-Width header

(comment last updated: 2025-12-15 22:20:37)

github-actions[bot] avatar Dec 11 '25 12:12 github-actions[bot]

I was trying to avoid duplication of content, but since both are still supported for now that's a fair call.

Added back now so PTAL.

tunetheweb avatar Dec 12 '25 01:12 tunetheweb

This pull request has merge conflicts that must be resolved before it can be merged.

github-actions[bot] avatar Dec 13 '25 02:12 github-actions[bot]

This pull request has merge conflicts that must be resolved before it can be merged.

Fixed

tunetheweb avatar Dec 13 '25 20:12 tunetheweb

Thanks for the thorough review @hamishwillee !

I've accepted most of the feedback but have an outstanding comment about one of the pieces of feedback (x3). I have a slight preference to keep it as I'd written to it, but not 100% wedded to it if you feel strongly about this.

tunetheweb avatar Dec 14 '25 23:12 tunetheweb

And yours! And your thoughtful reviews. Good to merge from my end!

tunetheweb avatar Dec 15 '25 22:12 tunetheweb