jquery-cssHooks icon indicating copy to clipboard operation
jquery-cssHooks copied to clipboard

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

Open amark opened this issue 13 years ago • 0 comments

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 };

amark avatar May 21 '11 02:05 amark