stylus / nib

Stylus mixins, utilities, components, and gradient image generation
http://stylus.github.io/nib
MIT License
1.91k stars 249 forks source link

Radial-gradient bug #302

Open L0une opened 9 years ago

L0une commented 9 years ago

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?

notslang commented 9 years ago

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);
}