@@ -89,90 +89,92 @@ exports[`Progress Circle should gradient works and circles have different gradie
89
89
role = " presentation"
90
90
viewBox = " 0 0 100 100"
91
91
>
92
- <defs >
93
- <linearGradient
94
- id = " rc_progress_TEST_OR_SSR-gradient"
95
- x1 = " 100%"
96
- x2 = " 0%"
97
- y1 = " 0%"
98
- y2 = " 0%"
99
- >
100
- <stop
101
- offset = " 0%"
102
- stop-color = " #108ee9"
103
- />
104
- <stop
105
- offset = " 100%"
106
- stop-color = " #87d068"
107
- />
108
- </linearGradient >
109
- </defs >
110
92
<circle
111
93
class = " rc-progress-circle-trail"
112
94
cx = " 50"
113
95
cy = " 50"
114
96
r = " 47"
115
97
stroke = " #D9D9D9"
116
- stroke-linecap = " round "
98
+ stroke-linecap = " butt "
117
99
stroke-width = " 1"
118
100
style = " stroke: #D9D9D9; stroke-dasharray: 295.3097094374406px 295.3097094374406; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;"
119
101
/>
120
- <circle
121
- class = " rc-progress-circle-path"
122
- cx = " 50"
123
- cy = " 50"
124
- opacity = " 1"
125
- r = " 47"
126
- stroke = " url(#rc_progress_TEST_OR_SSR-gradient)"
127
- stroke-linecap = " round"
128
- stroke-width = " 6"
129
- style = " stroke-dasharray: 295.3097094374406px 295.3097094374406; stroke-dashoffset: 32.53097094374406; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;"
130
- />
102
+ <mask
103
+ id = " rc_progress_TEST_OR_SSR-gradient-conic"
104
+ >
105
+ <circle
106
+ class = " rc-progress-circle-path"
107
+ cx = " 50"
108
+ cy = " 50"
109
+ opacity = " 1"
110
+ r = " 47"
111
+ stroke = " #FFF"
112
+ stroke-linecap = " butt"
113
+ stroke-width = " 6"
114
+ style = " stroke-dasharray: 295.3097094374406px 295.3097094374406; stroke-dashoffset: 29.53097094374406; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;"
115
+ />
116
+ </mask >
117
+ <foreignObject
118
+ height = " 100"
119
+ mask = " url(#rc_progress_TEST_OR_SSR-gradient-conic)"
120
+ width = " 100"
121
+ x = " 0"
122
+ y = " 0"
123
+ >
124
+ <div
125
+ style = " width: 100%; height: 100%;"
126
+ >
127
+ <div
128
+ style = " width: 100%; height: 100%;"
129
+ />
130
+ </div >
131
+ </foreignObject >
131
132
</svg >
132
133
<svg
133
134
class = " rc-progress-circle"
134
135
role = " presentation"
135
136
viewBox = " 0 0 100 100"
136
137
>
137
- <defs >
138
- <linearGradient
139
- id = " rc_progress_TEST_OR_SSR-gradient"
140
- x1 = " 100%"
141
- x2 = " 0%"
142
- y1 = " 0%"
143
- y2 = " 0%"
144
- >
145
- <stop
146
- offset = " 0%"
147
- stop-color = " #108ee9"
148
- />
149
- <stop
150
- offset = " 100%"
151
- stop-color = " #87d068"
152
- />
153
- </linearGradient >
154
- </defs >
155
138
<circle
156
139
class = " rc-progress-circle-trail"
157
140
cx = " 50"
158
141
cy = " 50"
159
142
r = " 47"
160
143
stroke = " #D9D9D9"
161
- stroke-linecap = " round "
144
+ stroke-linecap = " butt "
162
145
stroke-width = " 1"
163
146
style = " stroke: #D9D9D9; stroke-dasharray: 295.3097094374406px 295.3097094374406; stroke-dashoffset: 0; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0;"
164
147
/>
165
- <circle
166
- class = " rc-progress-circle-path"
167
- cx = " 50"
168
- cy = " 50"
169
- opacity = " 1"
170
- r = " 47"
171
- stroke = " url(#rc_progress_TEST_OR_SSR-gradient)"
172
- stroke-linecap = " round"
173
- stroke-width = " 6"
174
- style = " stroke-dasharray: 295.3097094374406px 295.3097094374406; stroke-dashoffset: 32.53097094374406; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;"
175
- />
148
+ <mask
149
+ id = " rc_progress_TEST_OR_SSR-gradient-conic"
150
+ >
151
+ <circle
152
+ class = " rc-progress-circle-path"
153
+ cx = " 50"
154
+ cy = " 50"
155
+ opacity = " 1"
156
+ r = " 47"
157
+ stroke = " #FFF"
158
+ stroke-linecap = " butt"
159
+ stroke-width = " 6"
160
+ style = " stroke-dasharray: 295.3097094374406px 295.3097094374406; stroke-dashoffset: 29.53097094374406; transform: rotate(-90deg); transform-origin: 50px 50px; transition: stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s; fill-opacity: 0; transition-duration: 0s, 0s;"
161
+ />
162
+ </mask >
163
+ <foreignObject
164
+ height = " 100"
165
+ mask = " url(#rc_progress_TEST_OR_SSR-gradient-conic)"
166
+ width = " 100"
167
+ x = " 0"
168
+ y = " 0"
169
+ >
170
+ <div
171
+ style = " width: 100%; height: 100%;"
172
+ >
173
+ <div
174
+ style = " width: 100%; height: 100%;"
175
+ />
176
+ </div >
177
+ </foreignObject >
176
178
</svg >
177
179
</div >
178
180
` ;
0 commit comments