Hi Richard, On Sat, Mar 07, 2009 at 01:13:11AM +0000, Richard Neill wrote:
Dear All,
I've just joined this list, so I hope I'm posting this in the right place.
I'm a webmaster, and I want to make sure that my site works properly in all browsers including dillo. However, some of the new code (*) in my site relies on CSS properties such as display:none and does not gracefully degrade.
If a browser has no CSS support, the newest stuff breaks in a very ugly manner, whereas most of the CSS I've written to date fails gracefully (we don't really care if some text-colour is wrong).
So my question is, how can I detect CSS support server-side? I don't need to know precise details of the CSS-support; I just want a simple yes/no. So Netscape 4.6 would be "yes", whereas Dillo 0.8, and links/lynx/w3m/googlebot would be "no".
I don't want to do it by user-agent sniffing, and, if at all possible, I don't want to rely on javascript (there are plenty of people who have CSS-capable browsers with JS turned off).
I've had no luck from google, so I thought I'd ask here, as you'll know the best way to do this.
I don't think there is a way to detect CSS support other than checking the reported user agent, as CSS only changes the appearance on the client side. However dillo is currently getting some initial CSS support, so for dillo this problem may just disappear in the future. Regards, Johannes