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

Expression optimize was wrong in 2.x.x #288

Closed
hefangshi opened this issue Jun 6, 2014 · 1 comment
Closed

Expression optimize was wrong in 2.x.x #288

hefangshi opened this issue Jun 6, 2014 · 1 comment
Milestone

Comments

@hefangshi
Copy link

I update clean-css from 1.1.7 to 2.1.8, and found that the expression was optimized by mistake.

source:

.sample {
    zoom:1;
    _zoom:expression(function(el){el.firstChild.style.marginLeft=0;el.style.zoom="1"}(this))
}

clean-css 2.18 output:

.sample{zoom:1;_zoom:expression(function(el){el.firstChild.style.marginLeft=0;el.style.zoom="1"}

clean-css 1.17 output:

.sample{zoom:1;_zoom:expression(function(el){el.firstChild.style.marginLeft=0;el.style.zoom="1"}(this))}
@GoalSmashers GoalSmashers added this to the 2.2 milestone Jun 7, 2014
@GoalSmashers
Copy link
Contributor

Fixed in master. Will be included in upcoming 2.2 release.

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

No branches or pull requests

2 participants