Re:Show HN: AlexCalc, a scientific calculator with LaTeX equ...
by froh on Friday January 28, 2022 @08:31PM
(#30122841)
Chrome on Android, web version, the phone is set to dark mode, the browser inherits it. Pixel 5.
[ Parent
| on HN ]
Re:Show HN: AlexCalc, a scientific calculator with LaTeX equ...
by axby on Friday January 28, 2022 @09:04PM
(#30123039)
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.
Re:Show HN: AlexCalc, a scientific calculator with LaTeX equ...
by froh on Saturday January 29, 2022 @05:40AM
(#30125333)
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?