Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

a few weeks ago I stumbled over a javascript that you can add to your site, and it would automatically modify your css, to work around some bugs in browsers, and add features they don't support (e.g. drop shadow)

Now I can't find it anymore. I found http://css3pie.com/ but that's not it.

Any hints?

share|improve this question
1  
modernizr.com/download –  Julien Roncaglia Dec 5 '11 at 19:06
    
You're describing a polyfill. There are lots of them, and both PIE and Modernizr can handle the one example you've given, in some form. Can you provide more context as to why they're not acceptable? Or at least more about the one you're looking for? (logo, vague idea of name, etc). There are so some scripts just for shadows; is that all you're looking for? –  Su' Dec 6 '11 at 1:03

3 Answers 3

up vote 1 down vote accepted

Probably Modernizr - from their documentation page:

Modernizr is a small JavaScript library that detects the availability of native implementations for next-generation web technologies, i.e. features that stem from the HTML5 and CSS3 specifications. Many of these features are already implemented in at least one major browser (most of them in two or more), and what Modernizr does is, very simply, tell you whether the current browser has this feature natively implemented or not.

share|improve this answer
    
Modernizer looks promising, thanks –  Josef Dec 6 '11 at 19:15

Sounds like you are looking for Modernizr; out there are a lot of this scripts that simulate a few css properties. For example, if I'm going to develop something in HTML5, I use the HTML5 shim because IE7 and IE8 doesn't support HTML5 tags:

<!--[if lt IE9]-->
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>  
<![endif]-->
share|improve this answer

You may be thinking of Prefix-Free, which came out a few weeks ago. It doesn't work around browser bugs per se, it allows you to write one CSS3 rule and it adds vendor prefixes where possible. Also known as a "polyfill".

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.