mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
CSS column-count property is unitless
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
* CSS properties which accept numbers but are not in units of "px".
|
||||
*/
|
||||
var isUnitlessNumber = {
|
||||
columnCount: true,
|
||||
fillOpacity: true,
|
||||
flex: true,
|
||||
flexGrow: true,
|
||||
|
||||
@@ -70,6 +70,7 @@ describe('CSSPropertyOperations', function() {
|
||||
|
||||
it('should not append `px` to styles that might need a number', function() {
|
||||
var unitlessProperties = [
|
||||
'columnCount',
|
||||
'fillOpacity',
|
||||
'flex',
|
||||
'flexGrow',
|
||||
|
||||
Reference in New Issue
Block a user