Created
September 3, 2010 18:38
-
-
Save kara-ryli/564334 to your computer and use it in GitHub Desktop.
Adds a test to Modernizr to detect support for text-overflow.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Modernizr.addTest('textoverflow', function () { | |
var s = document.documentElement.style; | |
return 'textOverflow' in s || 'OTextOverflow' in s; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This test is shamelessly adapted from this comment by kangax on Ajaxian.
Allows css like
Without it looking bad in Firefox.