Only set line dash if it is supported