Skip to content

Commit

Permalink
Adds CSS Grid properties to list of unitless numbers (facebook#9185)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsakmar authored and flarnie committed Jun 7, 2017
1 parent 7770761 commit 15dcadf
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/renderers/dom/shared/CSSProperty.js
Expand Up @@ -30,7 +30,13 @@ var isUnitlessNumber = {
flexNegative: true,
flexOrder: true,
gridRow: true,
gridRowEnd: true,
gridRowSpan: true,
gridRowStart: true,
gridColumn: true,
gridColumnEnd: true,
gridColumnSpan: true,
gridColumnStart: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
Expand Down
6 changes: 6 additions & 0 deletions src/renderers/dom/shared/__tests__/CSSProperty-test.js
Expand Up @@ -25,7 +25,13 @@ describe('CSSProperty', () => {
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRowEnd).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRowSpan).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridRowStart).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumnEnd).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumnSpan).toBeTruthy();
expect(CSSProperty.isUnitlessNumber.msGridColumnStart).toBeTruthy();
});

});

0 comments on commit 15dcadf

Please sign in to comment.