senchalabs / cssbeautify

Reindent and reformat CSS

Home Page:http://www.senchalabs.org/cssbeautify/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect comment placement

inko9nito opened this issue · comments

commented

This issue is exposed in the original sample code. The comment should be placed after the semicolon:

Screenshot

I dont't really like the comments before the semicolon. 👎 Any info about what's correct?

commented

As stated in my original issue, the comment should appear after the semicolon:

background-color: #333; /* darkgrey */

Oh, my bad. 👍 then, that's the correct way imho.

This in fact triggers a bug.

Before:

menu{color:red; /*foobar*/}

Beautified:

menu {
    color: red;
 /*foobar*/;
}

The unnecessary semicolon there is wrong.