fix(rating): evaluate `max` attribute on parent scope