1
0
mirror of https://github.com/niklasvh/html2canvas.git synced 2023-08-10 21:13:10 +03:00

Fix zIndex value

This commit is contained in:
MoyuScript 2017-08-10 23:24:38 +08:00
parent 2753285a71
commit e81f6a7e09

@ -122,7 +122,7 @@ export default class NodeContainer {
textTransform: parseTextTransform(style.textTransform),
transform: parseTransform(style),
visibility: parseVisibility(style.visibility),
zIndex: position !== POSITION.STATIC ? parseZIndex(style.zIndex) : 0
zIndex: parseZIndex(position !== POSITION.STATIC ? style.zIndex : 'auto')
};
if (this.isTransformed()) {