Skip to content

Commit 76b978a

Browse files
authored
fix: 🐛 cloneCSSStyle: copy transformOriginProp (#297)
Safari `cssText` does not include transform-origin prop
1 parent 5470cfc commit 76b978a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cloneNode.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ function cloneCSSStyle<T extends HTMLElement>(nativeNode: T, clonedNode: T) {
8080

8181
if (source.cssText) {
8282
target.cssText = source.cssText
83+
target.transformOrigin = source.transformOrigin
8384
} else {
8485
toArray<string>(source).forEach((name) => {
8586
let value = source.getPropertyValue(name)

0 commit comments

Comments
 (0)