Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Modernizr.addTest('backgroundcliptext',function()
- {
- var div = document.createElement('div')
- div.style.webkitBackgroundClip = "text"
- var text = div.style.cssText.indexOf('text')
- if (text > 0) return true
- 'Webkit Moz O ms Khtml'.replace(/([A-Za-z]*)/g,function(val)
- {
- if (val+'BackgroundClip' in div.style) return true;
- })
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement