mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Adding support for CSS3 Grid layout module.
grid-row and grid-column must be unitless numbers.
This commit is contained in:
committed by
Mike Nordick
parent
4b3b56f36a
commit
8da4efa899
@@ -26,6 +26,8 @@ var isUnitlessNumber = {
|
||||
flexShrink: true,
|
||||
flexNegative: true,
|
||||
flexOrder: true,
|
||||
gridRow: true,
|
||||
gridColumn: true,
|
||||
fontWeight: true,
|
||||
lineClamp: true,
|
||||
lineHeight: true,
|
||||
|
||||
@@ -24,6 +24,8 @@ describe('CSSProperty', function() {
|
||||
expect(CSSProperty.isUnitlessNumber.WebkitLineClamp).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user