David Kaneda wrote: > Not all WebKit supports animations (like the current version of WebKit > on the Android). Two other important examples are desktop Safari (less than 4.x) or iPhone OS 1.x > > To detect in terms of features, I would just look at the accompanying > Javascript classes and somehow detect if they exist, like > "WebKitTransitionEvent"- (haven't had a chance to test)
I was hoping someone was going to say "RTFM: Apple says you should use xyz to test for CSS transitions" ;) I just ran some tests with a few JavaScript objects with the following results: WebKitTransitionEvent Safari 3.2.1: false Safari 4 Beta: true iPhone OS 2.2.1: false WebKitPoint Safari 3.2.1: false Safari 4 Beta: false iPhone OS 2.2.1: true WebKitCSSTransformValue Safari 3.2.1: false Safari 4 Beta: true iPhone OS 2.2.1: false WebKitCSSMatrix Safari 3.2.1: false Safari 4 Beta: true iPhone OS 2.2.1: true Details on Browser Versions: Safari 4 Beta on Mac OS X (Version 5528.16) Safari 3.2.1 on Mac OS X iPhone OS 2.2.1 tested both in the Simulator and on an iPhone 2G I used (typeof OBJECT_NAME == "object") to look for the various objects. The test document that I used is here: http://iui.googlecode.com/svn/trunk/test/features.html It seems that WebKitCSSMatrix is the only one that seems to give the desired result (i.e. it returns "true" where Transitions of Transforms will work, and "false" otherwise) although it is theoretically possible that Transforms could be present without Transitions. Anyone have a better method? -- Sean --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
