Simplified the handling of length attributes. Don't set a background color, when it is specified as "transparent".