Method to provide hyphenated versions of prefixed CSS properties

*This issue was originally called “Vendor prefix constant”, but conversation has diverged. #1223 will result in a `Modernizr._prefix` property being added, fulfilling the OP’s original request, so we’ll track that request over there. – Stu Cox*

---

Sometimes, to just get the vendor prefix for unsupported cases…


```js
$('head').append([
'<style>',
'.carousel {',
prefix('transition') + ': all ' + duration + 's ease-in-out;',
prefix('transform') + ': translate3d(0, 0, 0);',
prefix('backface-visibility') + ':hidden;',  // Exception
'}',
'</style>'
].join("\n"));

function prefix (n) {
    return Modernizr.prefixed(n).replace(/([A-Z])/g, function(str,m1){ return '-' + m1.toLowerCase(); }).replace(/^ms-/,'-ms-');
}
```