Updated: use method to extract style value