Skip to content

Commit

Permalink
Adds CSS Grid properties to list of unitless numbers (#9185)
Browse files Browse the repository at this point in the history
  • Loading branch information
ericsakmar authored and flarnie committed Apr 20, 2017
1 parent b1768b5 commit 6488229
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,6 +25,12 @@ 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 6488229

Please sign in to comment.