cssbeautify
cssbeautify copied to clipboard
Incorrect comment placement
This issue is exposed in the original sample code. The comment should be placed after the semicolon:

I dont't really like the comments before the semicolon. :-1: Any info about what's correct?
As stated in my original issue, the comment should appear after the semicolon:
background-color: #333; /* darkgrey */
Oh, my bad. :+1: 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.