Implement drop-shadow() filter function
The drop-shadow()
filter function from SVG2's separate Filter Effects spec is not implemented yet. (Note that it is drop-shadow
with a dash, not drop_shadow
).
For an example of how to implement a filter function, see src/filter_func.rs. Tests go in tests/src/filters.rs - see the example for blur_filter_func() there.
Note that if the color is not specified in the drop-shadow(<color>? && <length>{2,3} )
syntax, the spec says that "the missing used color is taken from the color
property." This can be obtained from values.color()
in the implementation of to_filter_spec
.
Edited by Federico Mena Quintero