|
|
@@ -148,14 +148,14 @@ this.docHelper = this.docHelper || (() => {
|
|
|
getStyles(win, element, styles);
|
|
|
const computedStyle = win.getComputedStyle(element);
|
|
|
styles.set(element, {
|
|
|
- display: computedStyle.display,
|
|
|
- opacity: computedStyle.opacity,
|
|
|
- visibility: computedStyle.visibility,
|
|
|
- fontFamily: computedStyle.fontFamily,
|
|
|
- fontWeight: getFontWeight(computedStyle.fontWeight),
|
|
|
- fontStyle: computedStyle.fontStyle || "normal",
|
|
|
- fontVariant: computedStyle.fontVariant || "normal",
|
|
|
- whiteSpace: computedStyle.whiteSpace
|
|
|
+ display: computedStyle.getPropertyValue("display"),
|
|
|
+ opacity: computedStyle.getPropertyValue("opacity"),
|
|
|
+ visibility: computedStyle.getPropertyValue("visibility"),
|
|
|
+ fontFamily: computedStyle.getPropertyValue("font-family"),
|
|
|
+ fontWeight: getFontWeight(computedStyle.getPropertyValue("font-weight")),
|
|
|
+ fontStyle: computedStyle.getPropertyValue("font-style") || "normal",
|
|
|
+ fontVariant: computedStyle.getPropertyValue("font-variant") || "normal",
|
|
|
+ whiteSpace: computedStyle.getPropertyValue("white-space")
|
|
|
});
|
|
|
});
|
|
|
return styles;
|