mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Assign cssText string to same named property on target
This commit is contained in:
parent
216c290c4b
commit
965f850e68
@ -5,7 +5,7 @@ export const contains = (bit: number, value: number): boolean => (bit & value) !
|
||||
|
||||
export const copyCSSStyles = (style: CSSStyleDeclaration, target: HTMLElement): void => {
|
||||
if (style.cssText) {
|
||||
target.style = style.cssText;
|
||||
target.style.cssText = style.cssText;
|
||||
} else {
|
||||
// Edge does not provide value for cssText
|
||||
for (let i = style.length - 1; i >= 0; i--) {
|
||||
|
Loading…
Reference in New Issue
Block a user