happy-dom icon indicating copy to clipboard operation
happy-dom copied to clipboard

getPropertyValue gives wrong value when getting hex alpha color notation

Open sandymcfadden opened this issue 10 months ago • 0 comments

Describe the bug

In browsers when you use style.getPropertyValue("background-color") when that color uses hex alpha notation it returns an rgba color.

When using happy-dom it returns the hex alpha notation string instead.

To Reproduce Steps to reproduce the behavior:

  1. Run git clone https://github.com/sandymcfadden/happy-dom-hex-alpha-color-notation.git
  2. Run npm install
  3. Run node src/index.js

Expected behavior To match browsers and log the rgba color string

Screenshots If applicable, add screenshots to help explain your problem.

Device:

  • Node.js: v20.11.0
  • happy-dom: 14.7.1

sandymcfadden avatar Apr 13 '24 01:04 sandymcfadden