jianlinwei / cssmin

Automatically exported from code.google.com/p/cssmin
0 stars 0 forks source link

Error on filter property #28

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This CSS property generate an error:
_filter: 
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='/shared/images/shadow/to
p.png', sizingMethod='scale');

In the code, it check for filter property but not for "hacked" property _filter 
*filter -ms-filter
It is better in the condition to do like that (use of strpos):

// Fix for Internet Explorer declaration filter as the declaration value 
conrains a colon (Ex.: progid:DXImageTransform.Microsoft.Alpha(Opacity=85);)
if (strpos(strtolower($property), "filter")!==false && 
strtolower(trim($buffer)) == "progid:")

Original issue reported on code.google.com by johann.g...@gmail.com on 9 Mar 2011 at 2:26

GoogleCodeExporter commented 9 years ago
Thanks for reporting this bug.

Original comment by joe.scylla on 12 Mar 2011 at 12:23

GoogleCodeExporter commented 9 years ago
Fixed in version 2.0.2.2

Original comment by joe.scylla on 28 Mar 2011 at 1:31