I sometimes need to write CSS rules that define the same property multiple times in the same rule block, like :
div {
display:block;
display:inline-block;
}
or
.gradient {
background-image:-webkit-gradient(linear, left bottom, left top, color-stop(0.15, rgba(215,240,240,0.9)), color-stop(0.5, rgba(235,250,250,0)));
background-image: -moz-linear-gradient(bottom,rgba(215,240,240,0.9),rgba(235,250,250,0)) #ebf7f9;
}
Overwriting the same property on the same block helps in defining different values for different browser (each browser will pick the value that it can parse, leaving the others).
div{display:inline-block}
.gradient{background-image:-moz-linear-gradient(bottom,rgba(215,240,240,0.9),rgba(235,250,250,0)) #ebf7f9}
When parsing this rules, CSSTidy will only keep the latest defined value (which is logical but unwanted in this case).
Maybe there should be a setting to pass when parsing the file to switch this behavior on/off ?