buntarb / closure-stylesheets

Automatically exported from code.google.com/p/closure-stylesheets
Apache License 2.0
0 stars 0 forks source link

Wrong removal of last semicolon #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Use the following simple CSS:

*,body,.inner-playable-list-item {
  -webkit-user-select: none;
  /* @alternate */
  -khtml-user-select: none;
  /* @alternate */
  -moz-user-select: none;
  /* @alternate */
  -ms-user-select: none;
  /* @alternate */
  user-select: none;
  -webkit-touch-callout: none;
}

2. Use the jar with following options:
--allowed-unrecognized-property user-select
--output-renaming-map-format CLOSURE_COMPILED
--rename CLOSURE

What is the expected output? What do you see instead?
Valid minified CSS file
Instead the following is produced:

*,body,.a-b-c-d{-webkit-user-select:none;-khtml-user-select:none;-moz-user-selec
t:none;-ms-user-select:none;user-select:none;-webkit-touch-callout:none}

Notice the missing semicolon after the last property value. (none} instead of 
none;}).

What version of the product are you using? On what operating system?
The jar does not seem to have -version command.

Please provide any additional information below.
The jar was built from the source because several important properties in css 
are added after the last official release.

Original issue reported on code.google.com by regardin...@gmail.com on 31 Oct 2013 at 10:08