> Safari prevents websites from detecting when Adaptive Dark Mode has been applied. JavaScript that queries CSS colors will get the original authored colors, not the transformed ones. Any images drawn into canvas render in their original form.
So… the browser is now intentionally lying now. Ain’t that great.
This is more or less unavoidable to avoid breaking poorly-architected front-ends that rely on styling to handle logic.
Browsers lie all the time. Browsers also prevent sites from getting the color of a link because visited links can be shown in a different color and this can be used by the site to tell if a user has ever visited a link.
Don’t you love it when browsers lie to websites to enhance the user’s privacy.
It's the user's agent
One less thing to fingerprint.
> So… the browser is now intentionally lying now. Ain’t that great.
To the server. I'm 100% behind this. The unholy amount of control websites have over our web browser should go down, not up.
Browsers already intentionally lie all the time, and have had to for years, because fingerprinting and tracking by various ad networks and bad actors has been rampant.