mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-27 19:07:31 +09:00
SVG - support radialGradient fr attribute
This commit is contained in:
parent
3a4e49d048
commit
4ba6ca9106
10 changed files with 103 additions and 13 deletions
28
layout/reftests/svg/radialGradient-fr-02-ref.svg
Normal file
28
layout/reftests/svg/radialGradient-fr-02-ref.svg
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<!--
|
||||
Any copyright is dedicated to the Public Domain.
|
||||
http://creativecommons.org/publicdomain/zero/1.0/
|
||||
-->
|
||||
<svg xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<title>Test gradient fr attribute</title>
|
||||
<defs>
|
||||
<radialGradient id="grad1">
|
||||
<stop offset="0%" stop-color="red" />
|
||||
<stop offset="20%" stop-color="red" />
|
||||
<stop offset="100%" stop-color="lime" />
|
||||
</radialGradient>
|
||||
<style>
|
||||
.cover {
|
||||
stroke-width: 3px;
|
||||
stroke: lime;
|
||||
fill: none;
|
||||
image-rendering: optimizeSpeed;
|
||||
}
|
||||
</style>
|
||||
</defs>
|
||||
<rect width="100%" height="100%" fill="lime"/>
|
||||
|
||||
<circle cx="100" cy="100" r="50" fill="url(#grad1)" />
|
||||
<circle class="cover" cx="100" cy="100" r="50" fill="none"/>
|
||||
</svg>
|
||||
|
||||
|
After Width: | Height: | Size: 795 B |
Loading…
Add table
Add a link
Reference in a new issue