mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Adds CSS Grid properties to list of unitless numbers (#9185)
This commit is contained in:
committed by
Flarnie Marchan
parent
6428cf7359
commit
25177ec4ea
@@ -30,7 +30,13 @@ var isUnitlessNumber = {
|
||||
flexNegative: true,
|
||||
flexOrder: true,
|
||||
gridRow: true,
|
||||
gridRowEnd: true,
|
||||
gridRowSpan: true,
|
||||
gridRowStart: true,
|
||||
gridColumn: true,
|
||||
gridColumnEnd: true,
|
||||
gridColumnSpan: true,
|
||||
gridColumnStart: true,
|
||||
fontWeight: true,
|
||||
lineClamp: true,
|
||||
lineHeight: true,
|
||||
|
||||
@@ -25,7 +25,13 @@ describe('CSSProperty', () => {
|
||||
expect(CSSProperty.isUnitlessNumber.msFlexGrow).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.MozFlexGrow).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridRow).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridRowEnd).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridRowSpan).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridRowStart).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridColumn).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridColumnEnd).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridColumnSpan).toBeTruthy();
|
||||
expect(CSSProperty.isUnitlessNumber.msGridColumnStart).toBeTruthy();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user