Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to CSS color name transparent #583

Merged
merged 1 commit into from
Oct 19, 2018

Conversation

dreampiggy
Copy link
Contributor

@dreampiggy dreampiggy commented Oct 19, 2018

For <color> element, current we support all the color name listed in SVG 1.1- 147 color names.

However, the <color> element, now defined in CSS spec here supports transparent keyword.

The CSS spec for color is huge and supports many complicated color like hsl(), hsla(). We don't have enough time to support them one by one. But I think thin simple one is easy to implement.

After this fix, we can now correctlly render the demo SVG from MDN for showing radialGradient-fx value. The full radialGradient implementation is available soon, this one is much simpler so I create a separate PR.

@adamgit adamgit merged commit 2a0e302 into SVGKit:2.x Oct 19, 2018
@dreampiggy dreampiggy deleted the bugfix_transparent_color branch October 19, 2018 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants