stylus / nib

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

Gradient prefixing oddities in the latest version #226

Closed Charuru closed 10 years ago

Charuru commented 10 years ago

Here's the styl:

background linear-gradient(top, m70 0%, m55 100%)

This is the output:

image

As you can see it's very prefixing the tag instead of the gradient which is wrong.

I had to revert to 0.9.2 to get it to work.

notslang commented 10 years ago

Huh... well that's odd. When I compile:

p
    background linear-gradient(top, m70 0%, m55 100%)

with nib@1.0.1, I get:

p {
    background: -webkit-linear-gradient(top, m70 0%, m55 100%);
    background: -moz-linear-gradient(top, m70 0%, m55 100%);
    background: -o-linear-gradient(top, m70 0%, m55 100%);
    background: -ms-linear-gradient(top, m70 0%, m55 100%);
    background: linear-gradient(to bottom, m70 0%, m55 100%);
}

...not really sure what is going on, but I'd suggest checking the actual files generated by the stylus compiler... or maybe posting the code surrounding that bit of stylus

notslang commented 10 years ago

Imma close this... haven't gotten a reply in 2 months so I assume it's fixed or something.