Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Horizontal and vertical gradient mixins variable order forces percentages #9049
See mixins.less lines 238 and 252 in RC1.
The order of the variables and defaults in the horizontal and vertical gradient mixins cause the CSS to be invalid if percentages aren't included. Changing the variable order to @start-color, @end-color, @start-percent, @end-percent enables passing only 2 colors and still getting a valid gradient using default percentages.
So using #gradient > .horizontal(#fff, #000); breaks the CSS when the second value is used as @start-percent instead of @end-color.
Gradient percentages can still be passed optionally after the start and end color.
Same for .vertical.