This feature empowers web developers to enhance the visual appeal of their websites by leveraging the operating system's accent color for form elements. By utilizing the "accent-color" CSS property, developers can ensure that form elements such as checkboxes, radio buttons, and progress bars automatically adopt the accent color defined by the user's operating system. This feature is an enhancement to existing feature that is already shipped in Chromium: https://groups.google.com/a/chromium.org/g/blink-dev/c/WwYkLjbGhoA
None
Does this intent deprecate or change behavior of existing APIs, such that it has potentially high risk for Android WebView-based applications?
None
When the platform's accent color is utilized for the "accent-color" CSS property, either due to the absence of a specified value or when set to "auto," the getComputedStyle() JS function returns "auto" instead of the actual hexadecimal value of the color being applied. Related link: https://github.com/w3c/csswg-drafts/issues/6158
This feature is currently supported on Windows, macOS, and ChromeOS. Future work for Linux is planned and can be tracked at the following link: https://issues.chromium.org/issues/391917949. Android features a setting for accent color, and we plan to add support for Android in the future. The strategy is to release this feature incrementally, allowing web developers to provide feedback and assess the necessity of allocating additional resources for other less requested platforms.
- https://wpt.fyi/results/css/css-ui/accent-color-visited.tentative.html - https://wpt.fyi/results/css/css-ui/accent-color-parsing.html - https://wpt.fyi/results/css/css-ui/accent-color-computed.html - https://wpt.fyi/results/css/css-typed-om/the-stylepropertymap/properties/accent-color.html - https://wpt.fyi/results/css/css-ui/animation/accent-color-interpolation.html Note: The provided links are WPT for the accent-color property, including scenarios where the value is set to "auto." This feature relies on the platform's accent color and necessitates a WebDriver extension to simulate the accent-color property accurately. To ensure consistent testing with WPT, we would need to look into WebDriver API to support this functionality properly.
Shipping on desktop | 137 |
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).
NoneJust to clarify, this intent proposes to add an `auto` value to
accept-color, that picks up the system accent-color. Do I have
that right?
Flag name on about://flags
None
Finch feature name
CSSSystemAccentColor
Rollout plan
Will ship enabled for all users
Requires code in //chrome?
False
Tracking bug
https://issues.chromium.org/issues/40764875
Estimated milestones
Shipping on desktop 137
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).
None
Link to entry on the Chrome Platform Status
https://chromestatus.com/feature/6548224737017856?gate=5857060564238336
Links to previous Intent discussions
Intent to Prototype: https://groups.google.com/a/chromium.org/g/blink-dev/c/q9zf-frdewo/m/zxw2HuzGAQAJ
This intent message was generated by Chrome Platform Status.
--
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 visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/54317d12-4347-4265-8f06-c9d1dd795110n%40chromium.org.
You don't often get email from mike...@chromium.org.
Learn why this is important
|
Thanks,
LGTM1
Or rather, LGTM2
Or rather, LGTM2
On 4/30/25 7:06 AM, Mike Taylor wrote:
Thanks,
LGTM1
On 4/29/25 1:45 PM, Priya Palanisamy wrote:
Hi Mike,
Yes, the I2S proposes using the system accent color when the value is set to "auto". To clarify, "auto" is also the default option if no value is provided. Therefore, if the accent-color is not explicitly set, the form elements will automatically use the system accent color by default.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+unsubscribe@chromium.org.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/4dfca947-254a-47b2-885e-164a71f90b9cn%40chromium.org.
Some people who received this message don't often get email from emi...@crisal.io.
Learn why this is important
|
accent-color
CSS property is not set or set to auto.
Highlight
or AccentColor
System Color Keywords are NOT affected by this change.
You don't often get email from emi...@crisal.io.
Learn why this is important
|
Text selection colors are not affected, I just tested it out with experimental web platform features enabled on Canary.I agree that it would be nice to expose these colors in AccentColor/AccentColorText, but the fingerprinting concern as you mentioned is still there.The native accent color should not be readable in any way, including drawing these elements to a canvas. This example makes a blue checkbox instead of a native accent colored one in chrome canary: https://codepen.io/jarhar/pen/WbbyjEY
Search tags [http:///features#tags:accent-color]accent-color, [http:///features#tags:accent]accent, [http:///features#tags:color]color, [http:///features#tags:system%20accent%20color]system accent color
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/54317d12-4347-4265-8f06-c9d1dd795110n%40chromium.org.
--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 visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/4dfca947-254a-47b2-885e-164a71f90b9cn%40chromium.org.