Closed lionelB closed 9 years ago
It's impossible since this will require computation on runtime.
currentcolor
depends on the cascade.
I will add a note in the README.
thx. I guess this apply also to the #3
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()
.
It just can't. We don't have the DOM and only the DOM say the truth.
We don't necessarily need the truth when we're compiling.
For the exact same reason postcss-custom-properties is limited to root, I will never this kind of stuff.
Alright, fair enough.
It would be nice to support
color(currentcolor color-adjuster())
by the way, thx for this project !