Closed
Description
Problem
There is a problem with gradients in nib now: there is a canvas polyfill for simple linear gradients and support for old webkit syntax.
While this is cool, it's cool until you want to do something more than just simple linear gradient.
Today you can do a lot of other things, like repeating gradients, radial ones, multiple images (look for example at the Lea Verou's pattern collection), and you can't use all those things with nib, 'cause, as I understand, you'll need to support the canvas and old webkit syntax as well, so you can't do just anything you want to gradients' mixin.
The nib's issues affected by this:
- linear-gradient and multiple background #14 could be fixed easily.
- Vendor-prefixed properties AND values #19 also would be easiy to work for
border-image
,-webkit-mask
etc. - linear-gradient() fails when passing degree #71 could be fixed.
- Added radial-gradient incl svg and canvas #12 — issues with such fallbacks must be done apart of the nib.
- Gradient helper prevents having a 'top()' mixin #56 there is a chance that it would be fixed.
- linear-gradient with variables #67 could be fixed easily.
The solution
- Move the canvas generated gradients (and other fallbacks like pie or svg) to the mixins with different syntax from the current one, so the
linear-gradient()
one wouldn't generate them by default. Or move them to different repo at all. - Remove the support for the old webkit syntax — it's needed now only for some old androids — so who cares really? They're already in the Candidate Recomendation state and such legacy is a burden for nib.
- Rewrite the mixins a bit, so it would fix all the current issues. It would be rather simple if you'd have no need in all this legacy stuff, that are there now.
I can try to fork nib and do all those things, but I want to know if it's needed there.
@visionmedia, what do you think?
Metadata
Metadata
Assignees
Labels
No labels