Hacker News new | ask | show | jobs
by froh 1599 days ago
Chrome on Android, web version, the phone is set to dark mode, the browser inherits it. Pixel 5.
1 comments

Thanks a lot! I see now, I am able to reproduce the issue if I go into chrome://flags, search for "Auto Dark Mode for Web Contents", and select "Enabled with simple HSL-based inversion". Just choosing "Enabled" seemed to break the LaTeX entirely. (Please let me know if that isn't roughly what you did)

I don't know how I'll fix this (I've never really debugged mobile web specific stuff before), but I'll look into it this weekend.

There must be a way to fix it, since I don't see the issue when going to https://www.mathjax.org/#demo and entering something like this: $$\frac{1}{\sqrt{2}}$$

EDIT: I actually have no idea why this would be happening, unless there is some sort of metadata that I should be providing on the page to tell chrome how to enable dark mode on my content. I don't think I'm messing with the styling on the web version at all.

Hm I have dark mode enabled on the phone and then the chrome flag is just on default. How could I check which of the implementations this will select?

This is chrome 97.0.4692.98

I'd also think we move this from HN to some issue tracker?

https://github.com/alexbarry/AlexCalc/issues/2