News for hackers. Stuff that matters.
Re:All you may need is HTML by alduin32 on Thursday March 02, 2023 @12:09PM (#34998489)
It's also a great example of how even such a little can go wrong.

The CSS of the second website is wrong, as it uses 'color' without setting 'background-color'. Assuming anything about the default background color is not possible because it is user-configurable in most browsers.

At least http://motherfuckingwebsite.com remains readable when you change your color settings (the second one is completely unreadable on my browser).

Re:All you may need is HTML by bombcar on Thursday March 02, 2023 @12:18PM (#34998626)
Re:All you may need is HTML by low_tech_love on Thursday March 02, 2023 @04:48PM (#35002566)
It’s ok, but it’s already a bit too much. :)
Re:All you may need is HTML by j45 on Thursday March 02, 2023 @12:19PM (#34998646)
Good point. If the background color changes that often, I'm assuming there's probably a good test out there for that and more.

The text was readable as designed on a white-background. CSS that considers accessibility or print friendly is always good to add.

Re:All you may need is HTML by brigandish on Thursday March 02, 2023 @09:07PM (#35004933)
> I'm assuming there's probably a good test out there for that and more.

Javascript test?

Re:All you may need is HTML by j45 on Friday March 03, 2023 @04:39PM (#35015397)
Yeah there's lots of a Javascript or css or html validators out there, and likely geared towards checking against a set of best practices.

If it was a javascript that checked for the elements you want to ensure is there that would be neat too, I just wouldn't want it to be just me :)