Adds CSS Grid properties to list of unitless numbers (#9185)
Eric Sakmar committed
Apr 20, 2017 at 14:20 UTC
648822952fa24cf0e6f2d3b387f6e1fa96ec897e
2 files changed
+12
src/renderers/dom/shared/CSSProperty.js
+6
@@ -30,7 +30,13 @@ var isUnitlessNumber = {
30
flexNegative: true,
31
flexOrder: true,
32
gridRow: true,
33
+ gridRowEnd: true,
34
+ gridRowSpan: true,
35
+ gridRowStart: true,
36
gridColumn: true,
37
+ gridColumnEnd: true,
38
+ gridColumnSpan: true,
39
+ gridColumnStart: true,
40
fontWeight: true,
41
lineClamp: true,
42
lineHeight: true,
src/renderers/dom/shared/__tests__/CSSProperty-test.js
+6
@@ -25,6 +25,12 @@ describe('CSSProperty', () => {
25
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
26
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
27
expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
28
+ expect(CSSProperty.isUnitlessNumber.msGridRowEnd).toBeTruthy();
29
+ expect(CSSProperty.isUnitlessNumber.msGridRowSpan).toBeTruthy();
30
+ expect(CSSProperty.isUnitlessNumber.msGridRowStart).toBeTruthy();
31
expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
32
+ expect(CSSProperty.isUnitlessNumber.msGridColumnEnd).toBeTruthy();
33
+ expect(CSSProperty.isUnitlessNumber.msGridColumnSpan).toBeTruthy();
34
+ expect(CSSProperty.isUnitlessNumber.msGridColumnStart).toBeTruthy();
35
});
36
});