I personally struggled a lot with this. But finally, he found the answer at the end of the day. You can use my code below, it will show a complete list of Modernizr features and their meanings:
<script type="text/javascript"> $(document).ready(function () {}); </script> <script type="text/javascript"> $(function () { function ListAllMOdernizrFeatures() { var TotalString = "Modernizr features<br><br>"; var arrModernizrFeatures = new Array(); for (var feature in Modernizr) { if (typeof Modernizr[feature] === "boolean") { console.log("Modernizr_" + feature + ": " + Modernizr[feature]); arrModernizrFeatures.push("Modernizr." + feature + ": " + Modernizr[feature]) for (var subFeature in Modernizr[feature]) { var ModernizrFeature = Modernizr[feature]; if (typeof ModernizrFeature[subFeature] === "boolean") { arrModernizrFeatures.push("Modernizr." + feature + subFeature + ": " + ModernizrFeature[subFeature]); } } } } arrModernizrFeatures.sort(); </script>
source share