adobe / adobe/svg-native-viewer
<use> reference id defined inside <defs> does not works
- Dominant language
- C++
- Stars
- 164
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
### Expected Behaviour
The rendered circle should be filled with that white blue color
### Actual Behaviour
The rendered circle is filled with black color
### Reproduce Scenario (including but not limited to)
#### Steps to Reproduce
see this SVG:
```
```
It seems render the wrong result compared to Chrome.
A little change can workaround it by removing use and defs, using the embed attribute:
```
```
#### Platform and Version
commit: master, [d234cff](https://github.com/adobe/svg-native-viewer/commit/d234cfff48df92f0f2693e36c453e1a098153a36)
platform: iOS/macOS/tvOS/watchOS, CoreGraphics port
#### Sample Code that illustrates the problem
#### Logs taken while reproducing problem
Contributor guide
Research direction
Start by reproducing the provided SVG on the CoreGraphics port and compare its rendering with Chrome. Inspect how the circle and xlink:href reference are handled. Done when the referenced circle renders with the expected blue fill and opacity.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100