Skip to content

Commit

Permalink
Don't add webkit prefixes when a data-uri is set
Browse files Browse the repository at this point in the history
I've made a "CSS shorthand filters to SVG" processor here: https://github.com/iamvdo/pleeease-filters and integrated in Pleeease.
WebKit browsers don't support SVG filters through data URI, so prefixes can be removed safely in this case.
  • Loading branch information
iamvdo committed Jul 2, 2014
1 parent f817628 commit e6e7d1d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/hacks/filter.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Filter extends Declaration
check: (decl) ->
v = decl.value
v.toLowerCase().indexOf('alpha(') == -1 and
v.indexOf('DXImageTransform.Microsoft') == -1
v.indexOf('DXImageTransform.Microsoft') == -1 and
v.indexOf('data:image/svg+xml') == -1

module.exports = Filter

0 comments on commit e6e7d1d

Please sign in to comment.