Skip to content

Commit 7cc7f80

Browse files
committed
Add dom depth information to render queue
1 parent 4c75d81 commit 7cc7f80

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build/html2canvas.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,6 +1509,7 @@ _html2canvas.Parse = function (images, options, cb) {
15091509
newContext.isFloated = isFloated;
15101510
newContext.opacity = opacity;
15111511
newContext.ownStacking = (zIndex !== 'auto' || opacity < 1);
1512+
newContext.depth = parentStack ? (parentStack.zIndex.depth + 1) : 0;
15121513

15131514
if (parentStack) {
15141515
parentStack.zIndex.children.push(stack);
@@ -1517,6 +1518,7 @@ _html2canvas.Parse = function (images, options, cb) {
15171518

15181519
function h2czContext(zindex) {
15191520
return {
1521+
depth: 0,
15201522
zindex: zindex,
15211523
children: []
15221524
};

0 commit comments

Comments
 (0)