@samitouri / QOS-React-2 / commits / 30b2cfc1fd

Treat flexPositive/Negative/boxFlex as unitless styles

Joseph Nudell committed Mar 23, 2015 at 11:03 UTC 30b2cfc1fd8e1fd01b7c530bace4220a03824fb9
2 files changed +5
docs/tips/06-style-props-value-px.md
+3
@@ -18,11 +18,14 @@ See [Inline Styles](/react/tips/inline-styles.html) for more info.
18
19 Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:
20
21 +- `boxFlex`
22 - `columnCount`
23 - `fillOpacity`
24 - `flex`
25 - `flexGrow`
26 +- `flexPositive`
27 - `flexShrink`
28 +- `flexNegative`
29 - `fontWeight`
30 - `lineClamp`
31 - `lineHeight`
src/browser/ui/dom/CSSProperty.js
+2
@@ -20,7 +20,9 @@ var isUnitlessNumber = {
20 columnCount: true,
21 flex: true,
22 flexGrow: true,
23 + flexPositive: true,
24 flexShrink: true,
25 + flexNegative: true,
26 fontWeight: true,
27 lineClamp: true,
28 lineHeight: true,