Live data from Hacker News

Dear web developers: set the font color, too

luu.io

131–140 of 151 posts

Re: Dear web developers: set the font color, too

#132

Earlier quoted context omitted.

Sites are styled by default browser stylings. When font changes are inherited from user's settings however, it basically just breaks everything. For accessibility reasons, using the zoom feature is much more stable than increasing the default font size.

> Sites are styled by default browser stylings Which users choose according to their preferences (e.g. Firefox offers a preferences dialogue for this, and a bunch of about:config options). Whilst most users leave these as the OS/browser vendor's defaults, (in the words of Rush) "if you choose not to decide, you still have made a choice". > When font changes are inherited from user's settings however, it basically jus…

No, it's just a lost cause. I've had people complain that their website looks crazy on one specific PC, and after tons of debugging found it's because somebody set their default font size to 200px.

Of course, the majority of websites apply their own font styling so this doesn't often come up anymore. But those settings are just death traps at this point. Ineffective in 90% of cases, and hazardous in the 10% where they do work.

Re: Dear web developers: set the font color, too

#133

Pretty tangential, but with AMOLED screens, I really hope society starts embracing a dark-mode default for interfaces. There is no reason to use light-mode with modern screens. It's taxing on the eyes, probably not good for kids and teens who are using screens 4 hours a day and it doesn't seem to offer benefits over dark-mode in terms of accessibility. It's nice to see more and more websites and operating systems pro…

I prefer day-mode when in bright light. Otherwise the black background ends up reflecting the bright light. I often prefer night-mode when it is not bright out, and at nighttime.

Re: Dear web developers: set the font color, too

#135

This is the browser's fault for violating the HTML spec. As per the specification, the default font color is complete black and the default background color is complete white. To my knowledge the only browser that does not honor this is Firefox[1], and it is an eighteen year old bug which they refuse to fix. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=70315

What you say is true for the default, but form controls have additional UA styles applied to them that can override the default.

Just like the default border style is "none", but that's not what form controls do.

But even past that point, this is the _ua_ default. A user can always have a user stylesheet that sets whatever colors the user wants (e.g. for accessibility reasons).

And not setting background without setting color and vice versa is standard best-practice web development advice and has been for 2 decades or so now.

Re: Dear web developers: set the font color, too

#137

Pretty tangential, but with AMOLED screens, I really hope society starts embracing a dark-mode default for interfaces. There is no reason to use light-mode with modern screens. It's taxing on the eyes, probably not good for kids and teens who are using screens 4 hours a day and it doesn't seem to offer benefits over dark-mode in terms of accessibility. It's nice to see more and more websites and operating systems pro…

I prefer day-mode when in bright light. Otherwise the black background ends up reflecting the bright light. I often prefer night-mode when it is not bright out, and at nighttime.

I think the problem is that many of the "dark themes" have grayish fonts that give low contrast. If the font were pure white, the resulting contrast is much more usable in bright light

I achieve this by setting my display to higher contrast to blow out the grays, in bright light.

Re: Dear web developers: set the font color, too

#138

This is the browser's fault for violating the HTML spec. As per the specification, the default font color is complete black and the default background color is complete white. To my knowledge the only browser that does not honor this is Firefox[1], and it is an eighteen year old bug which they refuse to fix. [1] https://bugzilla.mozilla.org/show_bug.cgi?id=70315

> This is the browser's fault for violating the HTML spec. As per the specification, the default font color is complete black and the default background color is complete white. Your claim surprised me so much I went and re-read the latest HTML spec ( https://www.w3.org/TR/html52/rendering.html#rendering ) and it does indeed say: > The initial value for the color property is expected to be black. The initial value fo…

Huh, kids today with their modern web standards with their sensible, well specified defaults.

In my day, the default background color was #C0C0C0, as is laid down in the Book of Mozilla.

Re: Dear web developers: set the font color, too

#139
post #22

...what? Set the default color in your dumbass hacker theme too. This has nothing to do with accessibility, which is obvious because the author thinks a gray background with lower contrast for text reading is better.

By "dumbass hacker theme" you mean "the dark theme that ships with MacOS", right?

Do you think mojave dark mode changes the colors of inputs on web browsers??

Re: Dear web developers: set the font color, too

#140

Pretty tangential, but with AMOLED screens, I really hope society starts embracing a dark-mode default for interfaces. There is no reason to use light-mode with modern screens. It's taxing on the eyes, probably not good for kids and teens who are using screens 4 hours a day and it doesn't seem to offer benefits over dark-mode in terms of accessibility. It's nice to see more and more websites and operating systems pro…

Honestly this is only true when I'm in my basement cave. When I'm in the normal world with sunlight I need the standard brightness and white backgrounds.
Post reply on HN