-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test needed: svg supported as <img> src #107
Comments
Recommended property to use for this: Modernizr.svgasimg |
Should also test for svg as css background image. |
kroc, i asked a few people and no one has any idea how to do write such a test. :) you got any ideas? |
here is the meat of the test: http://www.broken-links.com/2010/09/22/using-svg-in-css-with-javascript-detection/ |
I implemented the following in a recent project, it works great but requires jQuery:
|
The script I used in my post on Broken Links doesn't seem to work in Opera; I haven't had an opportunity to look into it yet, but you might want to confirm. |
Unfortunately his test fails in Opera due to a known bug with onload for SVGs. DSK-276385 in their BTS, for reference. Could possibly be temporarily worked around using canvas getImageData I think, though there might be x-domain restrictions there - Modernizr probably couldn't be remote. |
firefox doesnt support this..
the basic test is:
then
related:
http://twitter.com/the_nerdery/statuses/21510276986
also issue #13
The text was updated successfully, but these errors were encountered: