News for hackers. Stuff that matters.
Re:SVG Triangle of Compromise by mrled on Monday July 29, 2024 @11:22AM (#41101130)
Huh. I'm the OP, and I do have a dark mode that respects `prefers-color-scheme: dark` -- or at least, it works for me (tm). Would you mind sharing details about your dark mode theme? Is it a third party extension or maybe a browser I haven't tested?
Re:SVG Triangle of Compromise by Grom_PE on Monday July 29, 2024 @11:37AM (#41101255)
I think the main cause of black rectangle is the lack of support for nested CSS. At least that's what I'm seeing in my browser.
Re:SVG Triangle of Compromise by mrled on Monday July 29, 2024 @12:11PM (#41101519)
Ohhh interesting. To anyone hitting this, I'm curious what specific browser you're using - I thought it was available ~everywhere now? https://caniuse.com/css-nesting
Re:SVG Triangle of Compromise by everybodyknows on Monday July 29, 2024 @12:38PM (#41101711)
Seeing only inverted smilie over black background on my iPad, dark mode or light both.
Re:SVG Triangle of Compromise by mrled on Monday July 29, 2024 @01:39PM (#41102180)
I can't replicate on mine. If this is due to nested styles, I think you are behind on your software updates :). But also, maybe I need to hold off a bit longer before moving to nested styles.
Re:SVG Triangle of Compromise by rav on Monday July 29, 2024 @05:26PM (#41103963)
According to a forum post [1], e.g. iPad Mini 4 was discontinued March 2019 and is stuck on iOS 15, which doesn't support nested styles. Perhaps the issue is that people want to continue using old tablet devices that are no longer getting OS updates?

[1] https://education.apple.com/resource/250012027

Re:SVG Triangle of Compromise by LoganDark on Monday July 29, 2024 @06:38PM (#41104419)
It's only been available everywhere since like 2023. My browser happens to be from 2022.
Re:SVG Triangle of Compromise by LoganDark on Monday July 29, 2024 @06:28PM (#41104356)
I'm on Windows and in the system-level settings app, there's a toggle for dark mode. When I turn that on, then `prefers-color-scheme: dark` starts matching. There are zero third-party extensions or styles here, and my browser is Chromium 118.