More unitless CSS properties

volume, stress, pitch-range, richness
This commit is contained in:
Andrew Davey
2014-01-10 10:41:32 +00:00
parent 095eea3241
commit ac0373ccae
2 changed files with 10 additions and 2 deletions
+4
View File
@@ -27,6 +27,10 @@ var isUnitlessNumber = {
lineHeight: true,
opacity: true,
orphans: true,
pitchRange: true,
richness: true,
stress: true,
volume: true,
widows: true,
zIndex: true,
zoom: true
@@ -77,10 +77,14 @@ describe('CSSPropertyOperations', function() {
zIndex: 5,
zoom: 6,
lineHeight: 7,
widows: 8
widows: 8,
volume: 9,
stress: 10,
pitchRange: 11,
richness: 12
})).toBe(
'fill-opacity:1;font-weight:2;opacity:3;orphans:4;z-index:5;zoom:6;' +
'line-height:7;widows:8;'
'line-height:7;widows:8;volume:9;stress:10;pitch-range:11;richness:12;'
);
});