Skip to content

Commit

Permalink
Merge pull request #3485 from jnu/ie10-flex-unitless
Browse files Browse the repository at this point in the history
Treat flexPositive, flexNegative as unitless styles
  • Loading branch information
zpao committed Apr 14, 2015
2 parents 4504504 + 51b6092 commit 41a6186
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/tips/06-style-props-value-px.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,15 @@ See [Inline Styles](/react/tips/inline-styles.html) for more info.

Sometimes you _do_ want to keep the CSS properties unitless. Here's a list of properties that won't get the automatic "px" suffix:

- `boxFlex`
- `boxFlexGroup`
- `columnCount`
- `fillOpacity`
- `flex`
- `flexGrow`
- `flexPositive`
- `flexShrink`
- `flexNegative`
- `fontWeight`
- `lineClamp`
- `lineHeight`
Expand Down
2 changes: 2 additions & 0 deletions src/browser/ui/dom/CSSProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ var isUnitlessNumber = {
columnCount: true,
flex: true,
flexGrow: true,
flexPositive: true,
flexShrink: true,
flexNegative: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
Expand Down

0 comments on commit 41a6186

Please sign in to comment.