Re: Modernizr tests for SVG (Was: Re: SVG IG Reset (introducing myself))

2010-02-03 15:04, Erik Dahlstrom skrev:

> Would be fun to see modernizr actually detecting svg functionality too,
> and filters would surely be one thing to test for.
>
> How about something similar to the canvas detection test, e.g:
>
> tests[svg] = function() {
> return !!doc.createElementNS( "http://www.w3.org/2000/svg", "svg"
> ).createSVGRect;
> };
>

Plain SVG detection is on the roadmap for Modernizr:

http://github.com/Modernizr/Modernizr/issues/

Especially:
http://github.com/Modernizr/Modernizr/issues/#issue/13

I don't know if it is possible to do automated tests for filters.


-- 
Lars Gunther
http://keryx.se/
http://twitter.com/itpastorn/
http://itpastorn.blogspot.com/

Received on Wednesday, 3 February 2010 15:11:34 UTC