[css-images] Add a math hint for calculating the length of the gradient line.