File tree Expand file tree Collapse file tree 1 file changed +14
-2
lines changed
Expand file tree Collapse file tree 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,10 @@ class Gradient extends Value {
7272 nodes [ 0 ] . value = `${ num } deg`
7373 }
7474
75- if ( gradientName === 'linear-gradient' || gradientName === 'repeating-linear-gradient' ) {
75+ if (
76+ gradientName === 'linear-gradient' ||
77+ gradientName === 'repeating-linear-gradient'
78+ ) {
7679 let direction = nodes [ 0 ] . value
7780
7881 // Unitless zero for `<angle>` values are allowed in CSS gradients and transforms.
@@ -365,7 +368,16 @@ class Gradient extends Value {
365368 */
366369 old ( prefix ) {
367370 if ( prefix === '-webkit-' ) {
368- let type = this . name === 'linear-gradient' ? 'linear' : 'radial'
371+ let type
372+ if ( this . name === 'linear-gradient' ) {
373+ type = 'linear'
374+ } else if ( this . name === 'repeating-linear-gradient' ) {
375+ type = 'repeating-linear'
376+ } else if ( this . name === 'repeating-radial-gradient' ) {
377+ type = 'repeating-radial'
378+ } else {
379+ type = 'radial'
380+ }
369381 let string = '-gradient'
370382 let regexp = utils . regexp (
371383 `-webkit-(${ type } -gradient|gradient\\(\\s*${ type } )` ,
You can’t perform that action at this time.
0 commit comments