diff --git a/lib/carto/tree/style.js b/lib/carto/tree/style.js index 3aac090..f050e89 100644 --- a/lib/carto/tree/style.js +++ b/lib/carto/tree/style.js @@ -39,7 +39,7 @@ tree.StyleXML = function(name, attachment, definitions, env) { } if (direct_image_filters.length) { - attrs_xml += ' direct-image-filters="' + _.chain(image_filters) + attrs_xml += ' direct-image-filters="' + _.chain(direct_image_filters) // prevent identical filters from being duplicated in the style .uniq(function(i) { return i.id; }).map(function(f) { return f.ev(env).toXML(env, true, ',', 'direct-image-filter'); diff --git a/test/rendering-mss/image-filters.mss b/test/rendering-mss/image-filters.mss new file mode 100644 index 0000000..79e611c --- /dev/null +++ b/test/rendering-mss/image-filters.mss @@ -0,0 +1,4 @@ +#layer { + image-filters:invert(); + direct-image-filters:invert(); +} \ No newline at end of file diff --git a/test/rendering-mss/image-filters.xml b/test/rendering-mss/image-filters.xml new file mode 100644 index 0000000..262f405 --- /dev/null +++ b/test/rendering-mss/image-filters.xml @@ -0,0 +1,2 @@ + \ No newline at end of file