github capricorn86/happy-dom v9.19.0

latest releases: v14.7.1, v14.7.0, v14.6.2...
11 months ago

🎨 Features

  • Adds support for "rem", "em", "vw", "vh", "vmin", "vmax", "cm", "mm", "in", "pt", "pc", "Q" measurement values to Window.getComputedStyle() and Window.matchMedia() (#921)
  • Adds support for "%" measurement values to Window.getComputedStyle() and Window.matchMedia() when setting font size (other properties will be set to "0px") (#921)
  • Sets "font: 16px "Times new Roman"" as default font on the <html> when using Window.getComputedStyle() (#921)
  • Adds support for "outline", "outline-color", "outline-style", "outline-width", "outline-offset", "letter-spacing", "word-spacing" and "text-indent" to CSSStyleDeclaration. (#921)
  • Adds support for the media query rules "orientation", "prefers-color-scheme", "any-hover", "hover", "any-pointer", "pointer", "display-mode", "width", "height", "min-aspect-ratio", "max-aspect-ratio" and "aspect-ratio" (#921)
  • Improves support for the media query rules "min-width", "max-width", "min-height" and "max-height" (#921)
  • Adds support for media types "all", "screen" and "print" to media queries (#921)
  • Adds support for the "only", "not", "and" and "or" operators to media queries (#921)
  • Adds support for ranges to media queries (#921)
  • Adds support for "@-webkit-keyframes", "@-webkit-container" and "@-webkit-supports" to CSS parser (#921)

👷‍♂️ Patch fixes

  • Adds support for ignoring unknown "@" rules to the CSS parser. (#921)
  • Adds support for the "height" property to CSSStyleDeclaration. Not having support for "height" was missed somehow, as we have support for "width". (#922)

Don't miss a new happy-dom release

NewReleases is sending notifications on new releases.