Adding support for CSS3 Grid layout module. grid-row and grid-column must be unitless numbers.
Adding support for CSS3 Grid layout module. grid-row and grid-column must be unitless numbers.
Mike Nordick committed
Apr 22, 2015 at 01:14 UTC
8da4efa899da65a4b07cfbd5d7baae37bf715c2d
2 files changed
+4
src/renderers/dom/shared/CSSProperty.js
+2
@@ -26,6 +26,8 @@ var isUnitlessNumber = {
26
flexShrink: true,
27
flexNegative: true,
28
flexOrder: true,
29
+ gridRow: true,
30
+ gridColumn: true,
31
fontWeight: true,
32
lineClamp: true,
33
lineHeight: true,
src/renderers/dom/shared/__tests__/CSSProperty-test.js
+2
@@ -24,6 +24,8 @@ describe('CSSProperty', function() {
24
expect(CSSProperty.isUnitlessNumber.WebkitLineClamp).toBeTruthy();
25
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
26
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
27
+ expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
28
+ expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
29
});
30
31
});