User Preference Media Features Client Hints Header defines a set of HTTP Client Hints headers around user preference media features as defined by Media Queries Level 5. If used as Critical Client Hints, these headers allow servers to make smart choices regarding, e.g., CSS inlining. Sec-CH-Prefers-Reduced-Transparency reflects the user's prefers-reduced-transparency preference.
Developers will include Sec-CH-Prefers-Reduced-Transparency in the response headers Accept-CH and Critical-CH to let the browser know that they’re interested in the user's transparency preferences. If supported, the request header Sec-CH-Prefers-Reduced-Transparency will be populated with the appropriate value. This follows the same pattern as existing Preference Client Hints and as such should be easy for developers to make use of.
This feature could be used for fingerprinting as it exposes a user preference. However, this is already exposed to CSS/JS by the `prefers-reduced-transparency` media query.
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
Developers can change this client hint header value by emulating prefers-reduced-transparency via Devtools in the Rendering Panel.
The feature will be supported on all platforms, but whether the user will be able to signal a reduced transparency preference depends on the OS.
Shipping on desktop | 118 |
DevTrial on desktop | 118 |
Shipping on Android | 118 |
DevTrial on Android | 118 |
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).
On 8/30/23 3:55 PM, Luke wrote:
Contact emails
lukewa...@gmail.com, lu...@warlow.dev
Explainer
https://github.com/wicg/user-preference-media-features-headers/blob/main/README.md
Specification
https://wicg.github.io/user-preference-media-features-headers/#sec-ch-prefers-reduced-transparency
Summary
User Preference Media Features Client Hints Header defines a set of HTTP Client Hints headers around user preference media features as defined by Media Queries Level 5. If used as Critical Client Hints, these headers allow servers to make smart choices regarding, e.g., CSS inlining. Sec-CH-Prefers-Reduced-Transparency reflects the user's prefers-reduced-transparency preference.
Blink component
Blink>CSS
Search tags
client hints, sec-ch-prefers-reduced-transparency, prefers-reduced-transparency
TAG review
--
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/6B4E754E-49E5-47DE-B473-4AC40FC0C599%40gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/411a7692-6ebf-483e-8700-669569e1c6a7n%40chromium.org.
LGTM2
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/16d8764f-6978-490c-8a59-56aaebb34a55%40chromium.org.