mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-26 03:01:51 +08:00
feat(core): css-what parser for CSS selectors + support for :not(), :is(), and :where() Level 4 and ~ (#10514)
This commit is contained in:

committed by
GitHub

parent
88a047254b
commit
2fb4f23670
@ -734,7 +734,7 @@ function normalizeTransformation({ property, value }: Transformation): Transform
|
||||
}
|
||||
|
||||
function convertTransformValue(property: string, stringValue: string): TransformationValue {
|
||||
/* eslint-disable prefer-const */
|
||||
// eslint-disable-next-line prefer-const
|
||||
let [x, y, z] = stringValue.split(',').map(parseFloat);
|
||||
if (property === 'translate') {
|
||||
y ??= IDENTITY_TRANSFORMATION.translate.y;
|
||||
@ -1239,8 +1239,8 @@ const boxShadowProperty = new CssProperty<Style, ShadowCSSValues>({
|
||||
blurRadius: Length.toDevicePixels(newValue.blurRadius, 0),
|
||||
spreadRadius: Length.toDevicePixels(newValue.spreadRadius, 0),
|
||||
color: newValue.color,
|
||||
}
|
||||
: null
|
||||
}
|
||||
: null,
|
||||
);
|
||||
},
|
||||
valueConverter: (value) => {
|
||||
|
Reference in New Issue
Block a user