stylus/nib

Radial-gradient bug

L0une opened this issue · 1 comments

Hello,
Here is a working code with linear-gradient:

testColor = #ff0000
.test
    background linear-gradient(testColor, #ffffff)

Here is a breaked code with radial-gradient:

testColor = #ff0000
.test
    background radial-gradient(testColor, #ffffff)
>> RangeError: css/theme/template/mixins.styl:12:75
>>     8|
>>     9|
>>    10| radial-gradient( $outer, $inner, $type = circle )
>>    11|       background $outer
>>    12|       background radial-gradient( center, $type cover,  $inner 0%, $outer 100% )
>> ---------------------------------------------------------------------------------^
>>    13|
>>
>> Maximum stylus call stack size exceeded
>>     at ".test" (css/theme/1twitif.styl:54:20)

Any idea please?

works fine for me and compiles into:

.test {
  background: -webkit-radial-gradient(#f00, #fff);
  background: -moz-radial-gradient(#f00, #fff);
  background: -o-radial-gradient(#f00, #fff);
  background: -ms-radial-gradient(#f00, #fff);
  background: radial-gradient(#f00, #fff);
}