Summary: | Implement AccentColor/AccentColorText | ||
---|---|---|---|
Product: | WebKit | Reporter: | Bramus <bramus> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW --- | ||
Severity: | Normal | CC: | akeerthi, bfulgham, lwarlow, simon.fraser, webkit-bug-importer, wilander |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Description
Bramus
2022-06-22 13:24:52 PDT
Scrap that link to CSSWG issue 5900. Only 7347 is relevant here. IIRC we don't expose accent colors to prevent fingerprinting, so while this can be implemented with a fixed value, that wouldn't be terribly useful. Just checked. `-webkit-focus-ring-color` not exposed indeed. Wrongfully assumed info in the WG issue on that was correct, but it was not. Would there be no way to implement this to be the same colour as `accent-color: auto`, while avoiding fingerprinting? Again apologies if I've misunderstood but it would seem that `-webkit-focus-ring-color` is exposed. https://jsfiddle.net/78539gym/ Based on this quick test: https://jsfiddle.net/01vz2osr/ All three browsers expose an OS accent colour derivative, at least on macOS 12.4. Tested in Chrome Dev 105, Firefox Stable 102, and Safari 15.5. While they don't all match each other they're a derivative of the OS colour so cover the fingerprinting front, even if not necessarily the legitimate use case of trying to style your elements to match `accent-color: auto`. Also the new AccentColor property can be tested in latest Firefox Nightly, and it exposes the accent colour. Per discussion in https://github.com/w3c/csswg-drafts/issues/7347 this is correct behaviour. |