@samitouri / QOS-React-2 / commits / 423380f9c3

Unitless CSS flex properties

Andrew Davey committed Jan 10, 2014 at 11:12 UTC 423380f9c3dd3d9b2bc37152e6b5a6648bbe857e
2 files changed +8
src/dom/CSSProperty.js
+4
@@ -23,9 +23,13 @@
23 */
24 var isUnitlessNumber = {
25 fillOpacity: true,
26 + flex: true,
27 + flexGrow: true,
28 + flexShrink: true,
29 fontWeight: true,
30 lineHeight: true,
31 opacity: true,
32 + order: true,
33 orphans: true,
34 pitchRange: true,
35 richness: true,
src/dom/__tests__/CSSPropertyOperations-test.js
+4
@@ -71,9 +71,13 @@ describe('CSSPropertyOperations', function() {
71 it('should not append `px` to styles that might need a number', function() {
72 var unitlessProperties = [
73 'fillOpacity',
74 + 'flex',
75 + 'flexGrow',
76 + 'flexShrink',
77 'fontWeight',
78 'lineHeight',
79 'opacity',
80 + 'order',
81 'orphans',
82 'pitchRange',
83 'richness',