varshluck / closure-stylesheets

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

Make identical declarations check optional #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. java -jar closure-stylesheets-20130114.jar style.css
2. style.css contains multiple declarations of background property in same rule 
definition
3. error occurs

What is the expected output? What do you see instead?

Expected output would be correctly compiled css file:
body{background:white;background:red}

Instead of that I see following error output:

Detected multiple identical, non-alternate declarations in the same ruleset. If 
this is intentional please use the /* @alternate */ annotation. 
background:[red] in style.css at line 4 column 1:
}
^

1 error(s), 0 warning(s)

What version of the product are you using? On what operating system?
closure-stylesheets-20130114.jar
jdk-7u17-linux-x64
Ubuntu 11.10 x64

Please provide any additional information below.

Please provide command line argument which can turn off identical declarations 
check. Many popular css components / frameworks uses identical property 
declarations (css3please.com, jquery mobile, ...). So anytime I am integrating 
/ upgrading such tool I have to fix their css files with /* @alternate */ 
command. Would be better to just turn off this check and save my time.

Original issue reported on code.google.com by martin.s...@gmail.com on 11 Apr 2013 at 2:57