From the course: CSS: Advanced Typographic Techniques

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Extending Modernizr

Extending Modernizr - jQuery Tutorial

From the course: CSS: Advanced Typographic Techniques

Start my 1-month free trial

Extending Modernizr

We're almost finished with our poster. Now, I'd really love to add a text shadow to non-webkit browsers. You can see I have the poster here opened in Firefox. And it would be really nice to have, sort of a text shadow to offset that color a little bit. But I really can't filter that out using vendor prefixes, or even using the default build of Modernizr. Now, unfortunately, as is the case with the text value of the background clip property. Modernizr isn't going to be able to detect for every feature that you need to check for. The good news, however, is that modernizr is built to be extended, which means you can often add detection for the, exactly the features that you need. So, here I'm back in my code editor, and I am working on our final file, posted at HTM from the 0608 directory. And what I'm going to do, is I'm going to use the add test function. So modernizr is built so that it has a function called add test that allows you to say. Hey I want you to check for for this…

Contents