From 487e60db8b93b8b33f9152566441175d3021e855 Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 25 Dec 2021 13:00:45 +0100 Subject: [PATCH] Fix PropertyFactory tests --- src/style_manager/model/PropertyFactory.js | 27 ++++++++++++++-------- 1 file changed, 17 insertions(+), 10 deletions(-) diff --git a/src/style_manager/model/PropertyFactory.js b/src/style_manager/model/PropertyFactory.js index d95173202..584a45dbb 100644 --- a/src/style_manager/model/PropertyFactory.js +++ b/src/style_manager/model/PropertyFactory.js @@ -185,21 +185,28 @@ export default class PropertyFactory { }, 'float', ], - ['text-shadow-h', { default: '0', units: this.unitsSizeNoPerc }, 'top'], + [ + 'text-shadow-h', + { + type: this.typeNumber, + default: '0', + units: this.unitsSizeNoPerc, + }, + ], ['text-shadow-v', {}, 'text-shadow-h'], ['text-shadow-blur', { min: 0 }, 'text-shadow-h'], - ['border-radius-c', { property: 'border-radius' }, 'padding-top'], - ['border-top-left-radius', {}, 'padding-top'], - ['border-top-right-radius', {}, 'padding-top'], - ['border-bottom-left-radius', {}, 'padding-top'], - ['border-bottom-right-radius', {}, 'padding-top'], - ['border-width', { default: 'medium', units: this.unitsSizeNoPerc }, 'padding-top'], + ['border-radius-c', { property: 'border-radius', fixedValues: undefined }, 'padding-top'], + ['border-top-left-radius', {}, 'border-radius-c'], + ['border-top-right-radius', {}, 'border-radius-c'], + ['border-bottom-left-radius', {}, 'border-radius-c'], + ['border-bottom-right-radius', {}, 'border-radius-c'], + ['border-width', { default: 'medium', units: this.unitsSizeNoPerc }, 'border-radius-c'], ['box-shadow-h', {}, 'text-shadow-h'], ['box-shadow-v', {}, 'text-shadow-h'], ['box-shadow-blur', { default: '5px' }, 'text-shadow-blur'], ['box-shadow-spread', {}, 'text-shadow-h'], - ['transition-duration', { default: '2', units: this.unitsTime }, 'padding-top'], - ['perspective', {}, 'padding-top'], + ['transition-duration', { default: '2', units: this.unitsTime }, 'border-radius-c'], + ['perspective', {}, 'border-radius-c'], ['transform-rotate-x', { functionName: 'rotateX', units: this.unitsAngle, default: '0', type: this.typeNumber }], ['transform-rotate-y', { functionName: 'rotateY' }, 'transform-rotate-x'], ['transform-rotate-z', { functionName: 'rotateZ' }, 'transform-rotate-x'], @@ -254,7 +261,7 @@ export default class PropertyFactory { options: [{ id: 'auto' }, ...optsFlexAlign], requiresParent: requireFlex, }, - 'align-items', + 'display', ], ['font-family', { default: 'Arial, Helvetica, sans-serif', options: this.optsFonts }, 'display'], ['font-weight', { default: '400', options: this.optsWeight }, 'display'],