* Adds `--rounding-precision` to control rounding precision.
* Moves quotation matching into a `QuoteScanner` class.
* Adds `npm run browserify` for creating embeddable version of clean-css.
+* Fixed list-style-* advanced processing.
* Fixed issue [#134](https://github.com/GoalSmashers/clean-css/issues/134) - merges properties into shorthand form.
* Fixed issue [#164](https://github.com/GoalSmashers/clean-css/issues/164) - removes default values if not needed.
* Fixed issue [#168](https://github.com/GoalSmashers/clean-css/issues/168) - adds better property merging algorithm.
'font-style': ['font'],
'font-variant': ['font'],
'font-weight': ['font'],
- 'list-style-image': ['list'],
- 'list-style-position': ['list'],
- 'list-style-type': ['list'],
+ 'list-style-image': ['list-style'],
+ 'list-style-position': ['list-style'],
+ 'list-style-type': ['list-style'],
'margin-bottom': ['margin'],
'margin-left': ['margin'],
'margin-right': ['margin'],
for (var j = 0, m = prefixes.length; j < m; j++) {
var prefixedProperty = prefixes[j] + property;
var prefixedBy = prefixes[j] + by;
+ var zeroValue = options.noneFor.indexOf(prefixedProperty) > -1 ? 'none' : '0';
context['should override ' + prefixedProperty + ' by ' + prefixedBy] = [
- 'a{' + prefixedProperty + ':inherit;' + prefixedBy + ':0}',
- 'a{' + prefixedBy + ':0}'
+ 'a{' + prefixedProperty + ':inherit;' + prefixedBy + ':' + zeroValue + '}',
+ 'a{' + prefixedBy + ':' + zeroValue + '}'
];
context['should not override ' + prefixedBy + ' by ' + prefixedProperty] =
- 'a{' + prefixedBy + ':0;' + prefixedProperty + ':inherit}';
+ 'a{' + prefixedBy + ':' + zeroValue + ';' + prefixedProperty + ':inherit}';
}
}
}
'font-style': ['font'],
'font-variant': ['font'],
'font-weight': ['font'],
- 'list-style-image': ['list'],
- 'list-style-position': ['list'],
- 'list-style-type': ['list'],
+ 'list-style-image': ['list-style'],
+ 'list-style-position': ['list-style'],
+ 'list-style-type': ['list-style'],
'margin-bottom': ['margin'],
'margin-left': ['margin'],
'margin-right': ['margin'],
'transition-duration': ['transition'],
'transition-property': ['transition'],
'transition-timing-function': ['transition']
- }, { vendorPrefixes: ['animation', 'transition'] }),
+ }, { vendorPrefixes: ['animation', 'transition'], noneFor: ['list-style-image'] }),
'redefined more granular properties with property merging': cssContext({
'should merge background with background-attachment': [
'a{background:0;background-attachment:fixed}',