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:
1 parent
b1768b5a48
commit
648822952f
2 files changed
+12
No files matched your search
@@ -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,6 +25,12 @@ 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