Skip to content

Commit 25177ec

Browse files
ericsakmarflarnie
authored andcommitted
Adds CSS Grid properties to list of unitless numbers (#9185)
1 parent 6428cf7 commit 25177ec

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/renderers/dom/shared/CSSProperty.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,13 @@ var isUnitlessNumber = {
3030
flexNegative: true,
3131
flexOrder: true,
3232
gridRow: true,
33+
gridRowEnd: true,
34+
gridRowSpan: true,
35+
gridRowStart: true,
3336
gridColumn: true,
37+
gridColumnEnd: true,
38+
gridColumnSpan: true,
39+
gridColumnStart: true,
3440
fontWeight: true,
3541
lineClamp: true,
3642
lineHeight: true,

src/renderers/dom/shared/__tests__/CSSProperty-test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ describe('CSSProperty', () => {
2525
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
2626
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
2727
expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
28+
expect(CSSProperty.isUnitlessNumber.msGridRowEnd).toBeTruthy();
29+
expect(CSSProperty.isUnitlessNumber.msGridRowSpan).toBeTruthy();
30+
expect(CSSProperty.isUnitlessNumber.msGridRowStart).toBeTruthy();
2831
expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
32+
expect(CSSProperty.isUnitlessNumber.msGridColumnEnd).toBeTruthy();
33+
expect(CSSProperty.isUnitlessNumber.msGridColumnSpan).toBeTruthy();
34+
expect(CSSProperty.isUnitlessNumber.msGridColumnStart).toBeTruthy();
2935
});
3036

3137
});

0 commit comments

Comments
 (0)