improved resolution of the auto style attribute