counterexamples icon indicating copy to clipboard operation
counterexamples copied to clipboard

Code samples illegible in dark mode on Firefox/Chrome

Open purcell opened this issue 3 years ago • 6 comments

Pages like https://counterexamples.org/runtime-misinformation.html apparently adapt to the OS light/dark colour mode: on MacOS in dark mode with Firefox or Chrome, the code snippets are dark text on dark background, and therefore illegible. Curiously, Safari seems okay. Just wanted to let you know - thanks for the resource.

purcell avatar May 16 '21 21:05 purcell

Hmmm, I think this might be rust-lang/mdbook#1304. I'll try upgrading to a more recent version and see if that fixes it.

stedolan avatar May 18 '21 18:05 stedolan

Worth a go, but that issue sounds like Firefox only - I feel like if it had affected Chrome too, someone might have noted it there.

purcell avatar May 18 '21 21:05 purcell

I tried a few different configs / OSes and I can't reproduce this. Do you have a screenshot? Which MacOS / browser version are you running?

stedolan avatar Jun 04 '21 14:06 stedolan

Screenshot 2021-06-05 at 13 10 41

Latest Firefox, latest MacOS, dark mode set system-wide.

purcell avatar Jun 05 '21 01:06 purcell

Screenshot 2021-06-05 at 13 11 59

Latest Chrome on same system.

purcell avatar Jun 05 '21 01:06 purcell

Screenshot 2021-06-05 at 13 12 49

Safari is fine.

purcell avatar Jun 05 '21 01:06 purcell