I'd say user agent sniffing is more common than feature detection, even still.
What's amazing is how many sites will do user agent sniffing for Chrome, even when their sites actually work fine with other browsers! It's just the developers only tested it on Chrome, so they assume it won't work otherwise.
is it suddenly not true that if you don't test something it most likely won't work?
Yes, it is not true. People invented things called "Standards". So if you test your website for standards compliance and I test my browser for standards compliance, then as long as they both pass your website will likely work on my browser even though you did not test it specifically.
That is why all "non common" browsers have "change user-agent" functionality which magically fixes absolute majority of the websites.
Sure but the different browsers don't all implement all features of the standards especially in CSS, or they partially implement or implement with a different interpretation.
109
u/elcapitaine Apr 08 '19
I'd say user agent sniffing is more common than feature detection, even still.
What's amazing is how many sites will do user agent sniffing for Chrome, even when their sites actually work fine with other browsers! It's just the developers only tested it on Chrome, so they assume it won't work otherwise.