Skip to content

Commit

Permalink
fix: 馃悰 cloneCSSStyle: copy transformOriginProp (#297)
Browse files Browse the repository at this point in the history
Safari `cssText` does not include transform-origin prop
  • Loading branch information
artemtumin committed Aug 10, 2022
1 parent 5470cfc commit 76b978a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/cloneNode.ts
Expand Up @@ -80,6 +80,7 @@ function cloneCSSStyle<T extends HTMLElement>(nativeNode: T, clonedNode: T) {

if (source.cssText) {
target.cssText = source.cssText
target.transformOrigin = source.transformOrigin
} else {
toArray<string>(source).forEach((name) => {
let value = source.getPropertyValue(name)
Expand Down

0 comments on commit 76b978a

Please sign in to comment.