Skip to content

Commit 3744da8

Browse files
committed
Update the cases about opacity and fill for CoreSVG
1 parent 80bffd6 commit 3744da8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,14 +168,18 @@ if svgImage.sd_isVector { // This API available in SDWebImage 5.6.0
168168

169169
## Compatibility for CoreSVG framework
170170

171-
#### The CSS `opacity` can not been applied for `path` which contains `fill` color
171+
#### The CSS `opacity` can not been applied when `fill` color exists
172172

173173
+ Example
174174

175175
```html
176176
<path d="M399.8,68.2c77.3,3.1,160.6,32.1" opacity="0.15" fill="rgb(29,36,60)" />
177177
```
178178

179+
+ Behavior
180+
181+
App Crash.
182+
179183
+ Workaround: Use CSS `rgba` to set the opacity instead.
180184

181185
```html

0 commit comments

Comments
 (0)