mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:07:35 +00:00
LibWeb/SVG: Support url() in the stroke attribute
This allows you to draw gradients in strokes, for example.
This commit is contained in:
parent
8993a710f8
commit
42a183720b
8 changed files with 51 additions and 12 deletions
|
@ -132,3 +132,14 @@
|
|||
</defs>
|
||||
<rect x="115" y="15" width="170" height="110" fill="url(#grad7)" transform="rotate(45 200 70)" />
|
||||
</svg>
|
||||
<br>
|
||||
<b>Stroke linear gradient + transform</b><br>
|
||||
<svg height="150" width="400">
|
||||
<defs>
|
||||
<linearGradient id="grad7" x1="0" y1="0" x2="70%" y2="0">
|
||||
<stop offset="0" stop-color="blue"/>
|
||||
<stop offset="1" stop-color="magenta"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<rect x="115" y="15" width="170" height="110" stroke="url(#grad7)" fill="none" transform="rotate(45 200 70)" />
|
||||
</svg>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue