Tagged articles
4 articles
Page 1 of 1
Tencent Cloud Developer
Tencent Cloud Developer
Sep 27, 2021 · Frontend Development

html2canvas Implementation Principles and Opacity Rendering Issue Analysis

The article explains html2canvas’s workflow—cloning, parsing, and rendering based on stacking contexts—and diagnoses why transparent overlays appear opaque in screenshots, revealing that the npm package lacks opacity handling; it then proposes adding an OpacityEffect class that records and applies element opacity via canvas globalAlpha to fix the issue.

CSSCanvasOpacity
0 likes · 11 min read
html2canvas Implementation Principles and Opacity Rendering Issue Analysis
360 Tech Engineering
360 Tech Engineering
Feb 26, 2019 · Frontend Development

Understanding CSS z-index and Stacking Contexts

This article explains the default stacking order of HTML elements, how z-index interacts with positioned, floating, and flex items, how to create custom stacking orders, and the rules for generating stacking contexts, providing practical examples and best‑practice recommendations for front‑end developers.

frontendlayoutstacking-context
0 likes · 11 min read
Understanding CSS z-index and Stacking Contexts