Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

color hook sets 'transparent' to alpha:1 (not transparent) #30

Open
amark opened this Issue · 0 comments

1 participant

@amark

inside color.js

css hook:

if (!value.alpha) { // returns true if value.alpha == 0
value.alpha = 1; // making it not transparent.
}

should be

if (!value.hasOwnProperty('alpha')) {
value.alpha = 1;
}

ADDITIONALLY:
colornames.transparent = { r:-1, g:-1, b:-1 };
should be
colornames.transparent = { r:-1, g:-1, b:-1, alpha:0 };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.