Links in the default browser dark mode color (using color-scheme) have insufficient contrast on WebKit browsers. This is a known issue.
I worked around it using hardcoded colors for links:
github.com/robinmetral/website@ef779cee5b/templates/page.html (L144-L153)
The bug was fixed on 11.09.2023 (PR) and I attempted to remove the workaround (bc544b0310).
However, testing on a real Safari browser (courtesy of TestGrid), it seems that the issue had not been fixed. (The easiest way to reproduce is to use this Glitch reproduction, since it's a hassle to change the preferred color scheme on remote devices.)
Issue reproduced on Safari 17.2, anchors have insufficient contrast
The device was an iPhone 15 Pro with iOS 17.2.1, using iOS Safari 17.2 (WebKit 617.1.17, according to the MDN mapping).
Questions: in which WebKit/Safari version has the WebKit fix been released? When can we assume that most Safari browsers (90%+) include the fix?
bc544b0310 was reverted for now.
Edit: according to the data below, this will likely take another year.
Links in the default browser dark mode color (using `color-scheme`) have insufficient contrast on WebKit browsers. This is a [known issue](https://bugs.webkit.org/show_bug.cgi?id=209851).
I worked around it using hardcoded colors for links:
https://github.com/robinmetral/website/blob/ef779cee5bd77712e3be99bfe3b1050890f215ff/templates/page.html#L144-L153
The bug was fixed on 11.09.2023 ([PR](https://github.com/WebKit/WebKit/pull/17512)) and I attempted to remove the workaround (bc544b0310fea1a86095d383bf5aeb455c169468).
However, testing on a real Safari browser (courtesy of TestGrid), it seems that the issue had not been fixed. (The easiest way to reproduce is to use [this Glitch reproduction](https://color-scheme-demo.glitch.me/), since it's a hassle to change the preferred color scheme on remote devices.)
<img alt="Issue reproduced on Safari 17.2, anchors have insufficient contrast" src="https://github.com/robinmetral/website/assets/35560568/779ba463-ad1e-4539-b09e-383474d8a515" width="250" />
The device was an iPhone 15 Pro with iOS 17.2.1, using iOS Safari 17.2 (WebKit 617.1.17, according to [the MDN mapping](https://github.com/mdn/browser-compat-data/blob/31af7a1bd68e24ce6ce7983f00f8b37555343c99/browsers/safari.json#L286-L292)).
Questions: in which WebKit/Safari version has the WebKit fix been released? When can we assume that most Safari browsers (90%+) include the fix?
bc544b0310fea1a86095d383bf5aeb455c169468 was reverted for now.
---
Edit: according to [the data below](https://github.com/robinmetral/website/issues/55#issuecomment-2132755400), this will likely take another year.
- [ ] in May 2025, check usage data for Safari <17.4. If it's <25% total Safari usage and <5% total usage, remove the workaround