@happy-dom/jest-environment
21.0.4 · 20 Oct 2026MIT269.4k / weekRepositoryHomepagenpmAtom feed
Upgrading @happy-dom/jest-environment From 9.3.0 to 9.20.3
46 releases in betweennotes for 8
Reading releases, release notes and advisories…
Release by release
- Fixed
Fixes issue where all properties didn't get copied from
HTMLUnknownElementto a custom element that is replacing it when it is defined.
- Fixed
- Fixed
Fixes issue where CSS variable values where not returned by
Window.getComputedStyle()when callingCSSStyleDeclaration.getPropertyValue().
- Fixed
- Fixed
Fixes problem with
querySelectorAll()where it didn't always return elements in document order.
- Fixed
- New
Adds support for disabling the simulation of rendering when calculating computed style. The rendering process converts units such as rem, em and cm to pixels, but it is very limited.
- New
Changes the behavior of converting percentage values to "0px" when calculating computed style (as it fails to convert) to just leave the values.
- New
- Fixed
Fixes issue where attribute selectors with an operator and with a value without quatation marks no longer worked (e.g. "[attr^=value]").
- Fixed
- New
Adds support for the mime type "apng" to
XMLHttpRequest
- New
- New
Adds support for "rem", "em", "vw", "vh", "vmin", "vmax", "cm", "mm", "in", "pt", "pc", "Q" measurement values to
Window.getComputedStyle()andWindow.matchMedia() - New
Adds support for "%" measurement values to
Window.getComputedStyle()andWindow.matchMedia()when setting font size (other properties will be set to "0px") - New
Sets "font: 16px "Times new Roman"" as default font on the
<html>when usingWindow.getComputedStyle() - New
Adds support for "outline", "outline-color", "outline-style", "outline-width", "outline-offset", "letter-spacing", "word-spacing" and "text-indent" to
CSSStyleDeclaration.
- New
- Fixed
Fixes issue where non-string values did not get converted to strings in
CharacterData.data,CharacterData.nodeValueorCharacterData.textContent.
- Fixed
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.