mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix z-index stacking with fixed position
This commit is contained in:
@ -617,7 +617,7 @@ function renderableNode(node) {
|
||||
|
||||
function isPositionedForStacking(container) {
|
||||
var position = container.css("position");
|
||||
var zIndex = (position === "absolute" || position === "relative") ? container.css("zIndex") : "auto";
|
||||
var zIndex = (["absolute", "relative", "fixed"].indexOf(position) !== -1) ? container.css("zIndex") : "auto";
|
||||
return zIndex !== "auto";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user