This page summarises every release since the fork from the original html2canvas project at
v1.4.1. Versions are listed newest-first.
backdrop-filter — full support (blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, sepia; multiple functions)mask / mask-image — images, all gradient types, multiple layers, mask-size, mask-position, mask-repeat, mask-origin, mask-clip, mask-mode, mask-composite; -webkit-mask-* fallback supportedoutline — outline-color, outline-style, outline-width, outline-offsetimageResolver hook — bypass CORS restrictions by providing a custom image-loading functiononProgress callback — rendering progress events with phase and clone sub-step detailsmask-mode and mask-size resolvedred 0% 25%) now parse and render correctly::marker font-size honoured when drawing list markers; markers now align with the first text line; linear-gradient list-style-image markers supportedopacity < 1 composited correctly on an offscreen surface, eliminating bleed-through artefactsgroove, ridge, inset, outset border styles; <fieldset>/<legend> top-border gapCache.clear() method; clearImageCache option; LRU-bounded cache via maxCacheSize; isResourceSameOrigin override optiononError callback — notified when any resource fails to loadimage-rendering — pixelated, crisp-edges, smooth and vendor prefixes respectedruby-align and ruby-position rendered-webkit-line-clamp — truncates to N lines with a trailing ellipsisunicode-bidi — bidi-override for <bdo> elements<select> list-box rendering corrected across browser engineslinear-gradient canvases cached and reusedviewportCulling option)ctx.letterSpacing used where available with per-grapheme fallback::first-letter, ::first-line, ::placeholder, ::marker<canvas> elements — actual pixel content of the canvas captured<details> / <summary> — open/closed state respectedbackground-attachment — scroll, fixed, local<object> element — rendered as image when data points to an image; fallback children otherwiseborder-image — full shorthand plus border-image-source, slice, width, outset, repeatobject-position — controls the alignment of replaced elements::placeholder improved; input text vertical centering fixedbackground-clip with border-radius applied correctly<q> element open-quote/close-quote rendered via quotes: autotext-decoration-style: wavy — continuous wavy underlinestext-decoration-inset and text-underline-offset / text-underline-positionzoom — accumulated nested zoom supportedbox-decoration-break — slice and clone for inline elementslinear-gradient offscreen canvas height restoredclip-path — inset(), circle(), ellipse(), polygon(), path(); legacy clip: rect() also supportedtransform — all 2D functions; 3D functions projected to 2Drepeating-linear-gradient, repeating-radial-gradient, conic-gradient, repeating-conic-gradientiframeLoader race condition in Firefox resolvedgetComputedStyle now uses the element's own windowbackground-blend-mode — all blend modesbackground-clip: textfilter — blur, brightness, contrast, drop-shadow, grayscale, hue-rotate, invert, opacity, saturate, sepia; rendered via offscreen canvasmix-blend-mode — all blend modestext-decoration-style and text-decoration-thicknesstext-transform — full-width, full-size-kana, math-autotext-shadow and text-decoration-color rendering improvedwriting-mode — vertical-rl, vertical-lr, sideways-rl, sideways-lr on text and list markers<input type="range">, <meter>, <progress> renderedoklab(), oklch(), lch(), lab(), hwb(), hsl(), color(), color-mix() via colorjs.iocalc() — supported in CSS length and other numeric values<textarea> — multi-line wrapping on word boundaries, explicit newlines, padding, line-height, letter-spacing, scrollTop; long words break character by character; break after hyphensletter-spacing — inter-character gaps rendered and wrap-budget calculated correctlybox-shadow — Bézier curves rebuilt with spread-adjusted border-radiusbox-shadow regression resolved<svg> elements render correctlyTextNode content no longer overlooked during renderingtextDecorationLine offset on high-resolution devices corrected (uses element heights)renderBackgroundImage no longer crashes on zero-width or zero-height imageslch() color function parsed and renderedFirst release after forking to
@html2canvas/html2canvas
object-fit for <img> elements (contain, cover, fill, scale-down, none)style.content accepts the "normal" valuetransform and clip effects correctedobject-fit on SVG images in Safari fixedString.prototype.substr() replaced<base> tag added to iframe clone to fix relative URL resolutionLIST_STYLE_TYPE enum value removedbox-shadow without inset, and blur-radius rendering fixedwillReadFrequently attribute set on canvases to suppress Chrome warnings