fix direct-image-filters output and add test for image-filters

This commit is contained in:
Dane Springmeyer 2013-09-25 17:21:27 -07:00
parent c1d750a246
commit 922740da5a
3 changed files with 7 additions and 1 deletions

View File

@ -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');

View File

@ -0,0 +1,4 @@
#layer {
image-filters:invert();
direct-image-filters:invert();
}

View File

@ -0,0 +1,2 @@
<Style name="style" filter-mode="first" image-filters="invert" direct-image-filters="invert">
</Style>