I would like to use hyphenation polyfill (e. g. hypher.js or hyphenator.js) only when CSS hyphenation not available, i. e.:
if (!Modernizr.hyphenation) {
$('p').hyphenate('en-us')
}
But there is no such detection available in Modernizr. Testing for hyphens: auto
support is not reliable: both Chrome and Mobile Safari support it (with prefix), but only the latter does hyphenation.
Is it an undetectable feature?