More unitless CSS properties
volume, stress, pitch-range, richness
Andrew Davey committed
Jan 10, 2014 at 10:41 UTC
ac0373ccaeb97651ad528da35a0e671ea4bf7811
2 files changed
+10
-2
src/dom/CSSProperty.js
+4
@@ -27,6 +27,10 @@ var isUnitlessNumber = {
27
lineHeight: true,
28
opacity: true,
29
orphans: true,
30
+ pitchRange: true,
31
+ richness: true,
32
+ stress: true,
33
+ volume: true,
34
widows: true,
35
zIndex: true,
36
zoom: true
src/dom/__tests__/CSSPropertyOperations-test.js
+6
-2
@@ -77,10 +77,14 @@ describe('CSSPropertyOperations', function() {
77
zIndex: 5,
78
zoom: 6,
79
lineHeight: 7,
80
- widows: 8
80
+ widows: 8,
81
+ volume: 9,
82
+ stress: 10,
83
+ pitchRange: 11,
84
+ richness: 12
85
})).toBe(
86
'fill-opacity:1;font-weight:2;opacity:3;orphans:4;z-index:5;zoom:6;' +
83
- 'line-height:7;widows:8;'
87
+ 'line-height:7;widows:8;volume:9;stress:10;pitch-range:11;richness:12;'
88
);
89
});
90