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

Minifier outputs invalid Hex codes for rgba and transparent values #237

Closed
onedrawingperday opened this issue Dec 6, 2018 · 2 comments
Closed

Comments

@onedrawingperday
Copy link

This issue came up in the Hugo Forum a few days ago and today I also came across this behavior myself:

It seems that for any rgba value e.g. rgba(000, 000, 000, 0.7); and also if a color value is set to transparent @tdewolff 's minifier outputs invalid hexadecimal numbers that fail W3C validation.

ref: https://discourse.gohugo.io/t/bug-minify-outputs-invalid-hex-codes-for-rgba-and-transparent-values/15609

I am opening this issue because this is something that looks like a proper bug but please note that currently my time is very limited and I cannot investigate further myself.

@onedrawingperday
Copy link
Author

I am closing this issue after noticing the KeepCSS2 flag that fixes this behavior.

@tdewolff
Copy link
Owner

tdewolff commented Dec 6, 2018

Yes, this is actually from new specifications from https://drafts.csswg.org/css-color-4/#hex-notation
Looking at https://developer.mozilla.org/en-US/docs/Web/CSS/color_value#Browser_compatibility it seems that Edge does not support this yet, so maybe I was too quick in adding it...thanks for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants