Skip to main content

HTML-in-canvas Bugs

This page tracks browser bugs and limitations affecting HTML-in-canvas that our community has reported.

Browser reports​

IssueProductFiled byStatus
HTML-in-canvas does crash page on WebGL context lossChrome@JonnyBurgerOpen
A canvas with opacity: 0 can crash HTML-in-canvasChrome@JonnyBurgerFixed in 158.0.8118.0
HTML-in-canvas does not handle object-fit CSS property wellChrome@JonnyBurgerFixed in 158.0.8121.0
Nested HTML-in-canvas renders differently based on window.devicePixelRatioChrome@JonnyBurgerFixed in 157.0.8080.0
Relax restriction disallowing nested HTML-in-canvasChrome@JonnyBurgerFixed in 157.0.8080.0
Incorrect 3D occlusionChromeThird-party (HeyGen)Open

Chrome build numbers identify the first build containing the fix and may refer to Canary before it reaches Stable. Where only a Chrome milestone is confirmed, only the major version is listed.

Unreported issues​

Feel welcome to reproduce these and file bugs to Chromium, then send PRs to move them up

Observed differenceReproduction conditions
Backfaces remain visibleA plane rotated away from the viewer can remain visible despite backface-visibility: hidden.
Positioned nested canvas is displacedA child canvas positioned with left: 70px; top: 30px can paint at a different offset from the ordinary DOM version. Test positioning separately from a CSS translation.
Fractional fitted canvas edges differA 640×360 child canvas styled width: 400px; height: 300px; object-fit: contain has different edge coverage where the fitted content starts at a fractional coordinate. This is a remaining nested-canvas sampling case, separate from the fixed object-fit report above.
Blend, backdrop and mask effects differIntersecting 3D planes with mix-blend-mode: screen or backdrop-filter: blur(...) can produce different colors or blur results. A flat element combining a gradient mask, backdrop blur and blending can also omit content from a following sibling.
OffscreenCanvas updates miss paint notificationsCommitting new frames from a main-thread or worker OffscreenCanvas inside a drawable element can fail to fire paint on its ancestor canvas. The linked fix is under review; no fixed version is confirmed.
Masks differ under perspectiveCompare a small, magnified plane with a linear-gradient mask, or an opacity group with a radial-gradient mask, under perspective and rotateY(). Masked edges and content can differ from the page.
Translucent groups differ at fractional scaleA group with opacity: 0.5, a box shadow, clipped children and an overflowing child has different edge coverage and colors under an ancestor scale(0.625).
Very wide translucent groups differAn opacity: 0.5 group with left: -50000px; width: 100000px, containing visible colored children, differs under an ancestor scale(0.625), including pixels inside the visible content.

See also​