Skip to content

Releases

v1.15.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 12:41
7300bb6

Features

  • add browser comparison viewer (tests/visual/compare.html) (bd0d954)
  • support -webkit-box-reflect (9885759)
  • support -webkit-text-fill-color (41f8f8b)
  • support accent-color on checkbox and radio inputs (ef98b7e)
  • support clip-path rect() and xywh() 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.filter is a no-op (WebKit/Safari) (8e51ba7)

Bug Fixes

  • default underline position and thickness per engine (c6f9aac)
  • isolate FontMetrics measurement from page CSS (7bc3da6)
  • line-through thickness on Firefox, half-pixel offset on Chromium (a68309a)
  • lint errors in isolation, text-emphasis-position and canvas-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-clamp clone on WebKit 27 (7a0bd25)
  • text decorations in sideways writing modes (4c60c02)
  • text-decoration propagation, proportional thickness and text-shadow support (f7ee00b)
  • text-emphasis mark glyphs and placement (c887933)
  • drop-shadow() blur radius in the fallback (8e51ba7)

v1.14.0 (2026-10-19)

Choose a tag to compare

@github-actions github-actions released this 19 Oct 22:05
d2ff0a5

Features

  • add CSS backdrop-filter support (e3054b7)
  • add CSS mask / mask-image support (ee91fac)
  • add CSS outline support (outline-color/style/width/offset) (86c0485)
  • add imageResolver hook to bypass CORS restrictions (3d74a3b)
  • add onProgress rendering callback with phase and clone sub-step events (a3a37e9)

Bug Fixes

  • resolve lint errors in mask-mode and mask-size (981ebb6)

v1.13.0 (2026-09-28)

Choose a tag to compare

@github-actions github-actions released this 27 Sep 22:20
7e18a02

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 ::marker font-size when drawing list markers (8797e4a)
  • render: support linear-gradient list-style-image markers (4e6926a)

v1.11.0 (2026-08-31)

Choose a tag to compare

@github-actions github-actions released this 19 Oct 22:04
f4b82e1

Features

  • add ::first-letter and ::first-line pseudo-element support (18905ea)
  • add ::placeholder and ::marker pseudo-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-image CSS property support (0b2e107)
  • implement object-position CSS property (dc05844)

Bug Fixes

  • add eslint-disable for Intl.Segmenter any casts (9f92b16)
  • correct examples links to account for Astro base URL (b441b95)
  • CSS Astro home page (11ff7f8)
  • improve ::placeholder support and fix input text vertical centering (a219e8a)
  • per-layer background-clip with border-radius (937032c)
  • support <q> element quotes (open-quote/close-quote with quotes:auto) (27b8b72)

v1.12.0 (2026-09-04)

Choose a tag to compare

@github-actions github-actions released this 04 Sep 21:26
7d155f7

Features

  • border: add fieldset/legend gap and groove/ridge/inset/outset border styles (bffae98)
  • cache: add Cache.clear() and opt-in clearImageCache option (290c780)
  • cache: add isResourceSameOrigin option to override same-origin checks (13ab7e7)
  • cache: bounded image cache with LRU eviction (maxCacheSize) (2b7e9e4), references niklasvh/html2canvas#2911
  • context: add onError callback for resource loading failures (e908009)
  • image: support image-rendering CSS and image smoothing options (f98e909)
  • text: render ruby annotations with ruby-align and ruby-position (e8417cf)
  • text: support -webkit-line-clamp (5e62335)
  • text: support unicode-bidi override 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 domcontentloaded for reftest navigation (e7dc1ee)

Performance Improvements

  • render: cache rasterised linear-gradient canvases (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.letterSpacing with per-grapheme fallback (13a4368)

1.10.0 (2026-08-28)

Choose a tag to compare

@Zefling Zefling released this 28 Aug 21:10
f12176f

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)

Choose a tag to compare

@github-actions github-actions released this 23 Aug 15:19
2f19192

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)

Choose a tag to compare

@Zefling Zefling released this 22 Aug 14:26
c6af09d

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)

Choose a tag to compare

@Zefling Zefling released this 22 Aug 14:25
5a7fe60

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)

Choose a tag to compare

@Zefling Zefling released this 22 Aug 14:24
0d7d6f9

feat

  • writing-mode: add support for writing-mode: vertical-rl, vertical-lr, sideways-rl and sideways-lr on 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() and color-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-spacing and scrollTop
  • 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