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

keyframe percentages are a syntax error #69

Closed
danc86 opened this issue May 5, 2015 · 0 comments
Closed

keyframe percentages are a syntax error #69

danc86 opened this issue May 5, 2015 · 0 comments

Comments

@danc86
Copy link
Contributor

danc86 commented May 5, 2015

In CSS animations, keyframes can be identified by a percentage. from is just a shortcut for 0% and to for 100%.

For example, from Mozilla Standup:

.animation-rainbow() {
0% { background-color: #cc3333; border-color: #cc3333; }
10% { background-color: #cc8f33; border-color: #cc8f33; }
20% { background-color: #adcc33; border-color: #adcc33; }
30% { background-color: #52cc33; border-color: #52cc33; }
40% { background-color: #33cc70; border-color: #33cc70; }
50% { background-color: #33cccc; border-color: #33cccc; }
60% { background-color: #3370cc; border-color: #3370cc; }
70% { background-color: #5233cc; border-color: #5233cc; }
80% { background-color: #ad33cc; border-color: #ad33cc; }
90% { background-color: #cc338f; border-color: #cc338f; }
100% { background-color: #cc3333; border-color: #cc3333; }
}

Currently lesscpy considers this a syntax error:

E: standup/static/less/magic.less line: 2, Syntax Error, token: `css_number`, `0%`
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 a pull request may close this issue.

1 participant