if ( val != null ) {
// Should return "auto" instead of 0, use 0 for
// temporary backwards-compat
- return val === "" ? "0px" : val;
+ return val === "" || val === "auto" ? "0px" : val;
}
}
// Should return "auto" instead of 0, use 0 for
// temporary backwards-compat
- return val === "" ? "0px" : val;
+ return val === "" || val === "auto" ? "0px" : val;
}
return typeof val === "string" ? val : val + "px";