Skip to content

Commit

Permalink
Adding support for CSS3 Grid layout module.
Browse files Browse the repository at this point in the history
grid-row and grid-column must be unitless numbers.
  • Loading branch information
Mike Nordick authored and mnordickmsft committed Sep 10, 2015
1 parent 4b3b56f commit 8da4efa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/renderers/dom/shared/CSSProperty.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ var isUnitlessNumber = {
flexShrink: true,
flexNegative: true,
flexOrder: true,
gridRow: true,
gridColumn: true,
fontWeight: true,
lineClamp: true,
lineHeight: true,
Expand Down
2 changes: 2 additions & 0 deletions src/renderers/dom/shared/__tests__/CSSProperty-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});

});

0 comments on commit 8da4efa

Please sign in to comment.