Unfortunately, IE 11 does not offer support for the filter
property at all. You can check out more information on browser compatibility at this link.
While there are JavaScript polyfills available for filter techniques like 'grayscale,' it may be challenging to find one that suits your specific requirements.
If you primarily rely on opacity
and drop-shadow
, you might not need to use filter
at all.
In fact, IE11 does support opacity
and box-shadow
, allowing you to achieve your desired styles without the use of filters. If you must cater to outdated browsers such as IE11, consider creating a separate stylesheet specifically for these cases:
<!--[if IE 11]>
<link href="ie11.css" rel="stylesheet" type="text/css">
<![endif]-->
UPDATE
Please note that, contrary to traditional methods, IE11 no longer supports conditional comments. Check out these additional resources for more information:
Learn more about conditional comments here: Internet Explorer Conditional Comments
For tips on writing special CSS for old IE versions including IE11, refer to the following links:
How to write a CSS hack for IE 11?
Targeting IE 10-11 with CSS