Repository navigation
Releases
Releases · html2canvas/html2canvas
v1.15.0
Features
- add browser comparison viewer (
tests/visual/compare.html) (bd0d954) - support
-webkit-box-reflect(9885759) - support
-webkit-text-fill-color(41f8f8b) - support
accent-coloron checkbox and radio inputs (ef98b7e) - support
clip-pathrect()andxywh()shapes (bfc4042) - support
image-set()and-webkit-image-set()(55c4837) - support
isolation: isolate(738c6b7) - support
text-emphasis(color, style, position) (ae181de) text-decoration-skip-ink(auto/none/all) (8e51ba7)- add a fallback when
ctx.filteris a no-op (WebKit/Safari) (8e51ba7)
Bug Fixes
- default underline position and thickness per engine (c6f9aac)
- isolate
FontMetricsmeasurement from page CSS (7bc3da6) line-throughthickness on Firefox, half-pixel offset on Chromium (a68309a)- lint errors in
isolation,text-emphasis-positionandcanvas-form-renderer(f65e63f) - offscreen stacks clipped by a preceding sibling's
clip-path(fcf80df) - scale blur lengths with the device scale (e55af89)
- text baseline and
line-clampclone on WebKit 27 (7a0bd25) - text decorations in sideways writing modes (4c60c02)
text-decorationpropagation, proportional thickness andtext-shadowsupport (f7ee00b)text-emphasismark glyphs and placement (c887933)drop-shadow()blur radius in the fallback (8e51ba7)
v1.14.0 (2026-10-19)
Features
- add CSS
backdrop-filtersupport (e3054b7) - add CSS
mask/mask-imagesupport (ee91fac) - add CSS
outlinesupport (outline-color/style/width/offset) (86c0485) - add
imageResolverhook to bypassCORSrestrictions (3d74a3b) - add
onProgressrendering callback with phase and clone sub-step events (a3a37e9)
Bug Fixes
- resolve lint errors in
mask-modeandmask-size(981ebb6)
v1.13.0 (2026-09-28)
Features
- demo: update playground examples (674e319)
Bug Fixes
- css: support double-position color stops in gradients (872985e)
- render: align list marker with the first text line (9642eaf)
- render: composite group opacity on an offscreen surface (e18a49b)
- render: correct gradient rendering with transparency, tiling and multiple layers (4923b7a)
- render: honor
::markerfont-sizewhen drawing list markers (8797e4a) - render: support
linear-gradientlist-style-imagemarkers (4e6926a)
v1.11.0 (2026-08-31)
Features
- add
::first-letterand::first-linepseudo-element support (18905ea) - add
::placeholderand::markerpseudo-element support (f708155) - add interactive playground and integrate examples into Astro site (4b7b500)
- canvas: render canvas elements with their actual pixel content (f519315)
- details: support
<details>and<summary>elements rendering (6dfea02) - implement
background-attachment, object element support, and clone height fix (44b706b) - implement
border-imageCSS property support (0b2e107) - implement
object-positionCSS property (dc05844)
Bug Fixes
- add eslint-disable for
Intl.Segmenterany casts (9f92b16) - correct examples links to account for Astro base URL (b441b95)
- CSS Astro home page (11ff7f8)
- improve
::placeholdersupport and fix input text vertical centering (a219e8a) - per-layer
background-clipwithborder-radius(937032c) - support
<q>element quotes (open-quote/close-quote withquotes:auto) (27b8b72)
v1.12.0 (2026-09-04)
Features
- border: add
fieldset/legendgap andgroove/ridge/inset/outsetborder styles (bffae98) - cache: add
Cache.clear()and opt-inclearImageCacheoption (290c780) - cache: add
isResourceSameOriginoption to override same-origin checks (13ab7e7) - cache: bounded image cache with LRU eviction (
maxCacheSize) (2b7e9e4), references niklasvh/html2canvas#2911 - context: add
onErrorcallback for resource loading failures (e908009) - image: support
image-renderingCSS and image smoothing options (f98e909) - text: render ruby annotations with
ruby-alignandruby-position(e8417cf) - text: support
-webkit-line-clamp(5e62335) - text: support
unicode-bidioverride for<bdo>(358fc41)
Bug Fixes
- border: eliminate corner seams on solid borders (dd360ec)
- cloner: serialize a valid doctype to keep the clone in standards mode (052d4b3)
- select: correct list-box option rendering across engines (af6683e)
- test: use
domcontentloadedfor reftest navigation (e7dc1ee)
Performance Improvements
- render: cache rasterised
linear-gradientcanvases (44c2704) - render: memoise resized background images (6b7b888)
- render: opt-in viewport culling of offscreen nodes (0bc2682)
- render: pool offscreen canvases to cut GC pressure (974e7c5)
- text: use native
ctx.letterSpacingwith per-grapheme fallback (13a4368)
1.10.0 (2026-08-28)
Features
- add Playwright visual regression tests for all reftest (3e7a959)
- add text-decoration-style wavy, text-decoration-inset, text-underline-offset & text-underline-position support (64f0f77)
- css: add CSS zoom property support (1fb273e)
- implement box-decoration-break (slice & clone) for inline elements (3879e24)
Bug Fixes
- background: restore missing canvas.height for linear-gradient offscreen canvas (c783f00)
- exclude tests/visual/ from Jest to avoid Playwright import conflict (06f8e15, 089cc7a)
- include src/global.d.ts in tests tsconfig to resolve textDecorationInset TS2551 error (30799f3)
- regenerate snapshots with Docker Playwright and add docker test scripts (542cfda)
- run visual tests in Playwright Docker container for consistent snapshots (3a98121)
- set explicit font-size on overflow-wrap test to prevent dimension drift across environments (68e079d)
- text-decoration: continuous WAVY and line-level inset (4c398db)
- wait for embedded fonts to load before Playwright capture (ea4c7d7)
Performance Improvements
- draw text-decoration lines once per visual line instead of per word (bb5de5b)
v1.9.0 (2026-08-23)
Features
- add CSS clip-path and clip:rect() support (1472db0)
- add full CSS transform function support (406573a)
- add support for repeating-linear-gradient, repeating-radial-gradient, conic-gradient and repeating-conic-gradient (27bc1c6)
- www: refactor styles, remove Carbon, add Examples page (44581a6)
Bug Fixes
- apply stylesheet rules correctly in Chromium iframe clone (6822053)
- CI — dist artifact before www/npm install, Safari continue-on-error (3533d21)
- CI fixes — prettier, webpack tsconfig, puppeteer executablePath, Node versions (f9e67f9)
- remove Safari macOS from CI — Karma v6 crashes on arm64, is deprecated (d789faf)
- resolve iframeLoader race condition in Firefox (5d59f5c)
- use element's own window for getComputedStyle in ElementContainer (b89847c)
v1.8.0 (2026-08-22)
Features
- add background-blend-mode support
- add background-clip: text support
- add full CSS filter property support (drop-shadow, blur, brightness, contrast, grayscale, hue-rotate, invert, opacity, saturate, sepia)
- add mix-blend-mode support
- add text-decoration-style and text-decoration-thickness support
- add text-transform full-width, full-size-kana & math-auto
Bug Fixes
- add site and base to astro config for github.io/html2canvas subpath
- filter: render all CSS filters via offscreen canvas
- improve text-shadow and text-decoration-color rendering
- prefix all links and assets with /html2canvas base path
- rename webpack.config to .cjs, lazy-load iOS deps in karma, remove Safari iOS CI job
- update jest matchers to use toHaveBeenCalled() with jest.Mock cast
v1.7.1 (2026-08-20)
build
- add proper TypeScript type declarations to build output
- add unbundled ESM build to deduplicate colorjs.io in TS projects
perf
- optimize hot paths in CSS parsing, DOM cloning, and rendering
- reduce bundle size by using minimal colorjs.io import
v1.7.0 (2026-08-20)
feat
- writing-mode: add support for
writing-mode: vertical-rl,vertical-lr,sideways-rlandsideways-lron text and list markers - input: add rendering support for
<input type="range">,<meter>and<progress>elements - color: add support for
oklab(),oklch(),lch(),lab(),hwb(),hsl(),color()andcolor-mix()CSS color functions via color.io - css: add
calc()support in CSS values
fix
- textarea: implement proper multi-line rendering — text now wraps on word boundaries, respects explicit newlines,
padding,line-height,letter-spacingandscrollTop - textarea: long words that exceed the box width now break character by character, matching browser behaviour
- textarea: break opportunities are now recognized after hyphens
- letter-spacing: fix inter-character spacing not being applied when rendering text with
letter-spacing - letter-spacing: fix wrap-budget calculation to account for
letter-spacing - box-shadow: rebuild Bézier curves with spread-adjusted border-radius
- text: align text and list markers using measured font baseline for consistent cross-browser vertical positioning
- css: resolve CSS custom properties performance issue and fix associated box-shadow rendering regression
- svg: SVG elements with embedded images now render correctly