diff --git a/packages/views-dom/src/combineStyleStreams.ts b/packages/views-dom/src/combineStyleStreams.ts index 49239f76..b8c3d96d 100644 --- a/packages/views-dom/src/combineStyleStreams.ts +++ b/packages/views-dom/src/combineStyleStreams.ts @@ -34,8 +34,18 @@ export type PrimitiveStyleDict = Partial<{ scale: number, transformOrigin: Partial, dimensions: Partial, -}> & CSS.Properties; + // Explicitly pass through the styles that `combineStyleStreams` needs. + // + // Can't `& CSS.Properties` because that causes conflicts for the shape of + // `transformOrigin`. See #250. + borderRadius: CSS.Properties['borderRadius'], + willChange: CSS.Properties['willChange'], + width: CSS.Properties['width'], + height: CSS.Properties['height'], +}>; + +// TODO(#250): Merge StyleStreams and csstype export function combineStyleStreams(styleStreams: Partial): ObservableWithMotionOperators { return combineLatest>( stripStreamSuffices(styleStreams as StyleStreams) as MaybeReactive,