Skip to content
This repository was archived by the owner on Nov 9, 2018. It is now read-only.
This repository was archived by the owner on Nov 9, 2018. It is now read-only.

Linear gradient support #17

@aks1994

Description

@aks1994

Hi, thanks for making this library. One question I have is how do I use linear gradients in SVGs?

For example, in my svg object I have something like this:

<defs>
    <linearGradient id="mygradient">
      <stop offset="0" class="start-color"/>
      <stop offset="1" class="end-color"/>
    </linearGradient>
</defs>

and then in my css I would like to access it as follows: svg rect {fill: url(#mygradient);}

Currently the css styles are not able to access the mygradient property. Is there any workaround using this library for accessing definitions from ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions