Drop shadow with rgb color not working
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 4.1k
- Forks
- 348
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 3
Description
Hey, I'm trying to use a drop shadow in a style element like
```
filter: "drop-shadow(0 2px 2px rgb(0 0 0))",
```
or even better
```
filter: "drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))",
```
But when converting from svg to png via resvg the shadows are lost
It should be reproduceable with

https://github.com/yisibl/resvg-js/issues/317
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No source file or test is named in the issue. Start by reproducing the provided SVG-to-PNG conversion with the rgb() drop-shadow examples, then trace resvg's SVG filter and color handling. Done means both shadow examples render in the PNG output, with regression coverage for the reported syntax.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100