3 ms·
The hackery is literally opening the users control center and clicking the icon for desktop theme and clicking on a different theme and clicking apply. This se
by michaelmrose 8y ago
The hackery is literally opening the users control center and clicking the icon for desktop theme and clicking on a different theme and clicking apply.
This sets the users desktop colors. Firefox will pick this up and use these colors for elements on the page unless these elements are explicitly styled by the developer.
So say the users theme specifies a grey or black background and white text. The developer wants a slightly different grey on the text but is ok with the default light background that developer assumes will show up.
Since the user specified a default color for the background and the developer did not we get a grey background. Since the developer selected a text color that takes precedence over the users selected color so we get grey text.
End result grey text on the grey background. There is no hackery. The user can't just style both because by design the developers choices are supposed to override defaults.
The user didn't do anything wrong. It is 100% the developers fault for explicitly specifying the color of the text and assuming (making an ass out of you and me) that the background would be a certain color because it is on their install of chrome. This is no different than assuming the users screen is a certain size. If you set the color of text just go ahead and actually specify the background color as well.
- jameslk 8y agoThe developer was doing you a favor, by not overriding all your styles, preventing you from potentially downloading a bunch of unnecessary bytes, slowing down your browser with potentially unnecessary CSS rules and leaving it up to you to use your best judgement not to fubar the site. Like I've mentioned elsewhere, this is the old reset css debate. It's a calculated risk to address 99% of users who don't have their browser change their default agent styles. Everyone else is assumed to know what they're doing.
- michaelmrose 8y agoThere is no way for users to fix that you the dev decided to override one value and not the other other than not using dark themes. Overriding one value and not the other isn't doing the user a favor it predictably results in broken behavior that you could 100% avoid by designing your page competently. The 2 colors are implicitly related and need to be chosen together to result in a readable result. The fact that it works okay on most systems does not indicate that your work is correct. 100% broken code per standards that happened to work under internet explorer 6 wasn't correct under the principle that people could just use ie. This is only different in that this debate is more nonsensical because the correct behavior is so easy to achieve. The default background being light isn't an actual default and if you depend on it then it is no different than depending on the user speaking English having 3 names text being ltr. Its calculated nothing because setting the background color increases how predictable your look and feel is. There are zero downsides to doing so.