detect css transitions while javascript is disabled
I have been using moderni开发者_JAVA百科zr with javascript to decide whether css transitions is available, but is there a way to check if css transitions are working, without using javascript?
I think the only scenario where that would make sense is a browser without CSS animation support and with JS disabled. There you could display some message like "Please upgrade your browser or enable JS."
You could try server-side UserAgent sniffing there, but I wouldn't recommend it. First of all, it's not reliable and second it's simply not worth the effort. Anyone using such a browser is used to limited functionality.
精彩评论