mirror of
https://github.com/svg/svgo.git
synced 2026-01-27 07:02:06 +03:00
22 lines
736 B
Plaintext
22 lines
736 B
Plaintext
If a one-stop gradient has the color defined via both attribute and style, style
|
|
takes precedence.
|
|
|
|
===
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg"
|
|
xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="744.09448" height="1052.3622">
|
|
<defs>
|
|
<linearGradient id="a">
|
|
<stop stop-color="#ff0000" style="stop-color:#00ff00"/>
|
|
</linearGradient>
|
|
<linearGradient x1="353.83112" y1="396.85037" x2="496.56262" y2="396.85037" id="b" xlink:href="#a"/>
|
|
</defs>
|
|
<rect width="150" height="150" x="350" y="350" style="fill:url(#b)"/>
|
|
</svg>
|
|
|
|
@@@
|
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="744.09448" height="1052.3622">
|
|
<rect width="150" height="150" x="350" y="350" style="fill:#00ff00"/>
|
|
</svg>
|