(el: Element)
| 87 | } |
| 88 | |
| 89 | function getZIndex(el: Element): number { |
| 90 | const dataLayer = el.getAttribute("data-layer"); |
| 91 | if (dataLayer) return parseInt(dataLayer, 10) || 0; |
| 92 | |
| 93 | const style = (el as HTMLElement).style?.zIndex; |
| 94 | if (style) return parseInt(style, 10) || 0; |
| 95 | |
| 96 | return 0; |
| 97 | } |
| 98 | |
| 99 | function parseResolutionFromCss(doc: Document, cssText: string | null): CanvasResolution { |
| 100 | const stage = doc.getElementById("stage") || doc.querySelector("#stage"); |
no test coverage detected