Modernizr is a JavaScript library that detects HTML5 and CSS3 features in the user’s browser.
Modernizr for Haxe are type definitions to be used by the HaxeJS target.
Requires Haxe 3 RC.
To install v2.6.2
run:
haxelib git modernizr https://github.com/skial/Modernizr.git src
Version 2.6.2
will automatically create a custom build, based on the fields you use.
To use non core feature detects, add -D mnc
or -D modernizr_non_core
to your hxml
file. The custom build will
include any non core features you use.
If there is a missing non core feature, you can create a new issue.
Version 2.6.1
should run fine for Haxe v2.10+.
To install v2.6.1
run:
haxelib install modernizr
Always read the documentation for non core test you are using, as some are asynchronous.
http://www.modernizr.com/
http://www.modernizr.com/download/
http://github.com/Modernizr/Modernizr
http://modernizr.github.com/Modernizr/test/