Skip to content

Commit 41a6186

Browse files
committed
Merge pull request #3485 from jnu/ie10-flex-unitless
Treat flexPositive, flexNegative as unitless styles
2 parents 4504504 + 51b6092 commit 41a6186

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

docs/tips/06-style-props-value-px.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,15 @@ See [Inline Styles](/react/tips/inline-styles.html) for more info.
1818

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

21+
- `boxFlex`
22+
- `boxFlexGroup`
2123
- `columnCount`
2224
- `fillOpacity`
2325
- `flex`
2426
- `flexGrow`
27+
- `flexPositive`
2528
- `flexShrink`
29+
- `flexNegative`
2630
- `fontWeight`
2731
- `lineClamp`
2832
- `lineHeight`

src/browser/ui/dom/CSSProperty.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ var isUnitlessNumber = {
2020
columnCount: true,
2121
flex: true,
2222
flexGrow: true,
23+
flexPositive: true,
2324
flexShrink: true,
25+
flexNegative: true,
2426
fontWeight: true,
2527
lineClamp: true,
2628
lineHeight: true,

0 commit comments

Comments
 (0)