Skip to content

support for currentcolor #2

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

Closed
lionelB opened this issue Jan 20, 2015 · 7 comments
Closed

support for currentcolor #2

lionelB opened this issue Jan 20, 2015 · 7 comments

Comments

@lionelB
Copy link

lionelB commented Jan 20, 2015

It would be nice to support color(currentcolor color-adjuster())

by the way, thx for this project !

@MoOx
Copy link
Contributor

MoOx commented Jan 20, 2015

It's impossible since this will require computation on runtime.
currentcolor depends on the cascade.
I will add a note in the README.

@lionelB
Copy link
Author

lionelB commented Jan 20, 2015

thx.
I guess this apply also to the #3

@MoOx MoOx closed this as completed in e076592 Jan 20, 2015
@stevenvachon
Copy link

stevenvachon commented Sep 21, 2016

Could it not walk up the CSSOM to find a color definition? If none is found, default to black. I understand that this is not specification-compliant, but neither is this library's implementation of var().

@MoOx
Copy link
Contributor

MoOx commented Sep 21, 2016

It just can't. We don't have the DOM and only the DOM say the truth.

@stevenvachon
Copy link

We don't necessarily need the truth when we're compiling.

@MoOx
Copy link
Contributor

MoOx commented Sep 21, 2016

For the exact same reason postcss-custom-properties is limited to root, I will never this kind of stuff.

@stevenvachon
Copy link

Alright, fair enough.

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