Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added angle support for linear-gradient #119

Closed
wants to merge 4 commits into from
Closed

Added angle support for linear-gradient #119

wants to merge 4 commits into from

Conversation

mbarzda
Copy link

@mbarzda mbarzda commented Aug 13, 2012

An ex. linear-gradient(45deg, red, green, blue), linear-gradient(0rad, red, green, blue).
If gradient has angle, legacy webkit is ignored.

An ex. linear-gradient(45deg, red, green, blue), linear-gradient(0rad, red, green, blue).
If gradient has angle, legacy webkit is ignored.
end = grad-point(opposite-position(start))
webkit-legacy = '-webkit-gradient(linear, %s, %s, %s)' % (grad-point(start) end join-stops(stops, webkit-stop))
add-property(prop, replace(val, '__CALL__', webkit-legacy))
if start is a 'indent'
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why an indent?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made mistake. Should be 'ident'

@tj
Copy link
Collaborator

tj commented Aug 13, 2012

needs some tests if you dont mind

@kizu
Copy link
Member

kizu commented Aug 13, 2012

This was already done #94, so when I'll finish it there'd be the angles too. My version would be superior in a lot of ways (with tests!), the only thing left (and that is not in that pull request too) is the handling of the different gradient syntaxes — between the new and old ones.

I know that I'm a bit slow now (main work is overwhelming), but! We already use the code from #94 in a running projects, so it somewhat stable right now. But need to be adjusted according to the latest specs, as I already wrote, so wait a bit and it would be there :)

@mbarzda mbarzda closed this Aug 18, 2012
@mbarzda mbarzda reopened this Aug 18, 2012
@mbarzda mbarzda closed this Jul 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants