Skip to content

Instantly share code, notes, and snippets.

@Snugug
Last active January 24, 2017 21:54
Show Gist options
  • Save Snugug/c43102d65b704d57d482 to your computer and use it in GitHub Desktop.
Save Snugug/c43102d65b704d57d482 to your computer and use it in GitHub Desktop.
Feature Detection!
(function () {
'use strict';
var detect = function detect(property, value) {
if (window.CSS && window.CSS.supports) {
return window.CSS.supports(property, value);
}
else {
return false;
}
};
window.detect = detect;
}());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment