First you need to go to http://mootools.net/download/get/moo...2.4-core-yc.js and save the contents as a .js file as you will need mootools in order for this detection script to work.
Next you will need to also save the contents of http://www.aryweb.nl/projects/mooMod...dernizr-min.js as a .js file then do the following...
NOTE: Only the options in the
List of CSS3/HTML5 feature tests
can be used. Anything else not in the list will return undefined.
HTML Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>CSS3 Tester</title>
<script type="text/javascript" src="mootools-1.2.4-core-yc.js"></script>
<script type="text/javascript" src="mooModernizr-min.js"></script>
<script type="text/javascript">
alert(Browser.Features.textshadow);
</script>
</head>
<body>
{content_here}
</body>
</html>
Bookmarks