Fix calculation of smart breaks when html has transparent background

Should finally fix troublesome composer html tests