Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

-ms-filter vs filter What's the difference?

What's the difference between between IE's filter and -ms-filter properties? If I use one should I use them both? Do they do the same thing, but each work on only certain versions of IE?

like image 791
Web_Designer Avatar asked Aug 01 '11 15:08

Web_Designer


People also ask

What is difference between search and filter?

The difference between search and filtersFilters let you create a list of records that meet a common value. Search lets you find a single record based on a particular value.

What is stronger filter coffee or espresso?

Caffeine. Because of the intense flavor of the espresso shot, it is often assumed that espresso has higher caffeine content. The opposite is true. A typical espresso shot contains around 40-75mg of caffeine per 30ml while the filter coffee packs around 80-185mg of caffeine per 236ml cup (*).

What is the major difference between filter and Keepfilters?

The net effect over any one column is that both sets of arguments apply: both the filter arguments used in CALCULATE and the filters in the arguments of the KEEPFILTER function. In other words, whereas CALCULATE filters replace the current context, KEEPFILTERS adds filters to the current context.

Is filtered coffee better?

A study published online April 22, 2020, by the European Journal of Preventive Cardiology found that filtering coffee (for example, with a paper filter) — not just boiling ground coffee beans and drinking the water — was better for health, particularly for older people.


2 Answers

Microsoft introduced -ms-filter to make Internet Explorer more standards-compliant (CSS 2.1 requires vendor extensions to have vendor prefix). As the syntax of original filter property is not CSS 2.1 compliant, IE8+ requires the value of the -ms-filter property to be enclosed in quotation marks.

filter: alpha(opacity=40); -ms-filter: "alpha(opacity=40)"; 

-ms-filter is supported in IE8+, legacy filter property is, as far as I know, for backwards compatibility supported in all versions of Internet Explorer.

Related link: http://blogs.msdn.com/b/ie/archive/2008/09/08/microsoft-css-vendor-extensions.aspx

Please note that support for filters may be removed in IE10.

like image 84
duri Avatar answered Sep 23 '22 17:09

duri


-ms-filter property

Sets or retrieves the filter or collection of filters that are applied to the object. Note As of Windows Internet Explorer 9 this feature was deprecated. As of Internet Explorer 10 this feature was removed and should no longer be used.

-ms-filter property

like image 29
sonus21 Avatar answered Sep 22 '22 17:09

sonus21