mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
More unitless CSS properties
volume, stress, pitch-range, richness
This commit is contained in:
@@ -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;'
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user