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

8-digit hex support not available yet #986

Closed
superpoincare opened this issue Nov 16, 2017 · 6 comments
Closed

8-digit hex support not available yet #986

superpoincare opened this issue Nov 16, 2017 · 6 comments

Comments

@superpoincare
Copy link

superpoincare commented Nov 16, 2017

(Using the web/online version of clean-css)

.entry-content blockquote,
.comment-content blockquote {
	border: 1px solid #ededed;
	border: 1px solid rgba(0, 0, 0, 0.06666666666666667);
	border: 1px solid #0001;
	background-color: #fefefe;
	background-color: rgba(0, 0, 0, 0.00392156862745098);
	background-color: #00000001;
	color: #696969;
	color: rgba(68, 68, 68, 0.8);
	color: #444c;
	font-style: normal;
}

Actual output CSS

.comment-content blockquote,.entry-content blockquote{border:1px solid #ededed;border:1px solid rgba(0,0,0,.06666666666666667);border:1px solid;background-color:#fefefe;background-color:rgba(0,0,0,.00392156862745098);background-color:#00000001;color:#696969;color:rgba(68,68,68,.8);color:#444c;font-style:normal}

Expected output CSS

Actual output misses the hex hash-0001 after solid in "border".

Options chosen are: natural order for selector sorting, all level 2 optimizations, IE7 compatibility.

@jakubpawlowicz
Copy link
Collaborator

Sure, we should support those 👍

@jakubpawlowicz jakubpawlowicz added this to the 4.2.0 milestone Mar 5, 2018
@jakubpawlowicz
Copy link
Collaborator

The fix will be released in 4.2.0 tomorrow.

@MrChriZ
Copy link

MrChriZ commented Aug 2, 2018

--Moved comment from other thread as this one seemed more relevant--
This should be reopened. It's still an issue with 4.2.0.
In my case I have
background-color: #ffffffe6;

and it's being output as:
#fffe6

@jakubpawlowicz
Copy link
Collaborator

@MrChriZ what options do you pass to clean-css as it works fine for me?

@MrChriZ
Copy link

MrChriZ commented Aug 3, 2018

My apologies - I just discovered my results were being polluted by an older copy of clean-css.
I was working through an ember project and Ember seems to install multiple copies of clean-css.
I assumed the one in node_modules\clean-css was the one being used when it was not.

@jakubpawlowicz
Copy link
Collaborator

No worries!

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

3 participants