palimadra / iui

Automatically exported from code.google.com/p/iui
MIT License
0 stars 0 forks source link

Improve transition support detection #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Current implementation checks:
typeof  WebKitCSSMatrix == "object"

This returns the wrong result for Chrome and Android (returns false instead of 
true).

Suggested to change this code and also make it a public value that allows 
developers to use different detection mechanisms. This also has a small 
performance benefit (pre-calculating the value once).

Suggested code:
window.iui =
{
        animOn: (typeof  WebKitCSSMatrix == "object"
                || typeof  WebKitCSSMatrix == "function"),
... 

A discussion on this topic:
http://groups.google.com/group/iui-developers/browse_thread/thread/8651602178d49
2ef

Original issue reported on code.google.com by san0f...@gmail.com on 26 Sep 2011 at 10:03

GoogleCodeExporter commented 9 years ago

Original comment by msgilli...@gmail.com on 26 Sep 2011 at 10:10

GoogleCodeExporter commented 9 years ago
You had also suggested we use (window.WebKitCSSMatrix) but I'm concerned that 
could result in false positives (I may have even read somewhere that that was a 
bad idea)

Anyway, I really like the idea of making the check completely over-rideable so 
it is easy for people to find the idea feature test.

Original comment by msgilli...@gmail.com on 26 Sep 2011 at 10:12

GoogleCodeExporter commented 9 years ago

Original comment by msgilli...@gmail.com on 23 Jan 2012 at 9:57