From 25177ec4ea0f79ca852be932881d28faf8b353f8 Mon Sep 17 00:00:00 2001 From: Eric Sakmar Date: Thu, 20 Apr 2017 14:20:15 -0400 Subject: [PATCH] Adds CSS Grid properties to list of unitless numbers (#9185) --- src/renderers/dom/shared/CSSProperty.js | 6 ++++++ src/renderers/dom/shared/__tests__/CSSProperty-test.js | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/renderers/dom/shared/CSSProperty.js b/src/renderers/dom/shared/CSSProperty.js index fa0645c987057..6091751529646 100644 --- a/src/renderers/dom/shared/CSSProperty.js +++ b/src/renderers/dom/shared/CSSProperty.js @@ -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, diff --git a/src/renderers/dom/shared/__tests__/CSSProperty-test.js b/src/renderers/dom/shared/__tests__/CSSProperty-test.js index 331d38fc22925..f8fc2b8727964 100644 --- a/src/renderers/dom/shared/__tests__/CSSProperty-test.js +++ b/src/renderers/dom/shared/__tests__/CSSProperty-test.js @@ -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(); }); });