Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getPropertyValue gives wrong value when getting hex alpha color notation #1405

Open
sandymcfadden opened this issue Apr 13, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sandymcfadden
Copy link

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 sandymcfadden added the bug Something isn't working label Apr 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant