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

Block comment on previous line copied #201

Closed
BBosman opened this issue Feb 13, 2014 · 4 comments
Closed

Block comment on previous line copied #201

BBosman opened this issue Feb 13, 2014 · 4 comments

Comments

@BBosman
Copy link

BBosman commented Feb 13, 2014

If I run autoprefixer on the following code:

.test {
    outline: 0; /* Random comment */
    box-shadow: 0 0 8px rgba(82,168,236,.6);
}

It is converted to:

.test {
    outline: 0; /* Random comment */
    -webkit-box-shadow: 0 0 8px rgba(82,168,236,.6); /* Random comment */
    box-shadow: 0 0 8px rgba(82,168,236,.6);
}

The comment from the preceding line is copied to the prefixed lines.

This happens with the default settings.

@ai
Copy link
Member

ai commented Feb 13, 2014

It is already fixed in PostCSS 0.3 (it parse comments between declarations as separated node). Will be released in next 1.1 version at next week.

@ai ai added the 1.1 label Feb 13, 2014
@BBosman
Copy link
Author

BBosman commented Feb 13, 2014

Thanks for the feedback!

Good to know it's been fixed and I'll wait for the 1.1 release.

@ai ai added the enhancement label Feb 13, 2014
@ai
Copy link
Member

ai commented Feb 13, 2014

Autoprefixer master now uses PostCSS 0.3 “Prince Seere” with inline source map support: e32fda7
On next week fix will be released in 1.1.

@ai ai closed this as completed Feb 13, 2014
@ai
Copy link
Member

ai commented Feb 18, 2014

Version 1.1 with this fix was released today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants