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

console.log CSS color bug #28039

Open
perguto opened this issue Feb 10, 2025 · 0 comments
Open

console.log CSS color bug #28039

perguto opened this issue Feb 10, 2025 · 0 comments
Labels
ext/console Related to the ext/console crate

Comments

@perguto
Copy link

perguto commented Feb 10, 2025

Version: Deno 2.1.9

console.log("%cred %cgreen", "color:rgb(255,0,0)", "color:rgb(0,255,0);")

Result:
Image

Chrome Devtools for reference:
Chrome Devtools for reference

The second word should appear in green color (and this is how it is displayed in chrome devtools), but it keeps the color of the first word. I noticed that this bug happens both with rgb() after rgb() and with hsl() after hsl(), but not with hsl() after rgb() or vice versa.

@marvinhagemeister marvinhagemeister added the ext/console Related to the ext/console crate label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ext/console Related to the ext/console crate
Projects
None yet
Development

No branches or pull requests

2 participants